with Splynx and Pixelbin?
Creates a new customer with the provided details. See the documentation
Creates a new internet service with specified details. See the documentation
The Splynx API provides a gateway to manage and automate Internet Service Provider (ISP) tasks such as billing, networking, and customer management. By tapping into this API via Pipedream, you can create robust integrations and workflows that streamline operations, enhance customer service, and drive data-driven decisions. Pipedream's platform enables the connection of Splynx's features with hundreds of other apps without the need for extensive coding, facilitating task automation and data synchronization in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
splynx: {
type: "app",
app: "splynx",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.splynx.$auth.subdomain}.splynx.app/api/2.0/admin/customers/customer`,
headers: {
"Authorization": `Splynx-EA (access_token=${this.splynx.$auth.oauth_access_token})`,
},
})
},
})
import { PixelbinConfig, PixelbinClient } from "@pixelbin/admin";
export default defineComponent({
props: {
pixelbin: {
type: "app",
app: "pixelbin",
}
},
async run({steps, $}) {
// Creates a Pixelbin config using the API Token
const config = new PixelbinConfig({
domain: "https://api.pixelbin.io",
apiSecret: this.pixelbin.$auth.api_token,
integrationPlatform: "@PipedreamHQ/pipedream v0.1",
});
const pixelbin = new PixelbinClient(config);
const getData = async function() {
try {
// list the assets stored on your organization's Pixelbin Storage
const explorer = pixelbin.assets.listFilesPaginator({
onlyFiles: true,
pageSize: 5,
});
if (explorer.hasNext()) {
return await explorer.next();
}
} catch (err) {
console.log(err);
}
};
//Returns list of assets to use in the Pipedream workflow's downstream steps
return await getData();
},
})