Unleash innovation, unburden teams, and unlock budgets with S3-compatible cloud storage at 1/5th the cost.
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The Backblaze API offers robust capabilities for managing data storage and backup solutions on the cloud. Via Pipedream, you can tap into this API to automate tasks like file uploads, data backups, and management of storage buckets. Utilizing Pipedream’s serverless platform, developers can create event-driven workflows to connect Backblaze with other apps, trigger actions based on specific conditions, and streamline operations without manual intervention.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
backblaze: {
type: "app",
app: "backblaze",
}
},
async run({steps, $}) {
const data = {
"accountId": `${this.backblaze.$auth.account_id}`,
}
return await axios($, {
method: "post",
url: `${this.backblaze.$auth.api_url}/b2api/v3/b2_list_buckets`,
headers: {
"Content-Type": `application/json`,
"Authorization": `${this.backblaze.$auth.oauth_access_token}`,
},
data,
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})