A comprehensive billing and charging platform for telcos and communication service providers.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
portabilling: {
type: "app",
app: "portabilling",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `${this.portabilling.$auth.api_url}/rest/Env/get_env_info`,
headers: {
Authorization: `Bearer ${this.portabilling.$auth.oauth_access_token}`,
},
})
},
})
PortaBilling uses OAuth authentication. When you connect your PortaBilling account, Pipedream will open a popup window where you can sign into PortaBilling and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any PortaBilling API.
Pipedream requests the following authorization scopes when you connect your account:
POST
{{custom_fields.api_url}}/rest/Session/login
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}