import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
textlocal: {
type: "app",
app: "textlocal",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.txtlocal.com/balance`,
params: {
apiKey: `${this.textlocal.$auth.api_key}`,
},
})
},
})
Textlocal uses API keys for authentication. When you connect your Textlocal account, Pipedream securely stores the keys so you can easily authenticate to Textlocal APIs in both code and no-code steps.
Get your api key in your settings > API keys.