Ably offers a wide range of features that allow developers to build a variety of applications. Here are some examples of what you can build using the Ably API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ably: {
type: "app",
app: "ably",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.ably.io/channels/rest-example/messages`,
auth: {
username: `${this.ably.$auth.api_key_initial}`,
password: `${this.ably.$auth.api_key_remaining}`,
},
})
},
})
Ably uses API keys for authentication. When you connect your Ably account, Pipedream securely stores the keys so you can easily authenticate to Ably APIs in both code and no-code steps.
The full application key string can obtained through the dashboard and split at the colon.api_key_initial
is the initial segment of the api key before the colon used as the user nameapi_key_remaining
is the remaining string (without the leading colon) used as the password.