import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smslink_nc: {
type: "app",
app: "smslink_nc",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smslink.nc/api/user/me`,
headers: {
Authorization: `Bearer ${this.smslink_nc.$auth.personal_access_token}`,
"accept": `application/json`,
},
})
},
})
SMSlink nc uses API keys for authentication. When you connect your SMSlink nc account, Pipedream securely stores the keys so you can easily authenticate to SMSlink nc APIs in both code and no-code steps.