import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bytenite: {
type: "app",
app: "bytenite",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bytenite.com/v1/auth/user`,
headers: {
Authorization: `Bearer ${this.bytenite.$auth.oauth_access_token}`,
},
})
},
})
Creates a new video encoding task with ByteNite. See the documentation
Secures the link of the output from a finished encoding job. See the documentation
Initiates a previously created video encoding job. See the documentation
ByteNite uses OAuth authentication. When you connect your ByteNite account, Pipedream will open a popup window where you can sign into ByteNite and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any ByteNite API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.bytenite.com/v1/auth/access_token
accept: application/json
apiKey={{custom_fields.api_key}}
POST
https://api.bytenite.com/v1/auth/access_token
accept: application/json
apiKey={{custom_fields.api_key}}