npm

Node package manager

Integrate the npm API with the Pixelbin API

Setup the npm API trigger to run a workflow which integrates with the Pixelbin API. Pipedream's integration platform allows you to integrate npm and Pixelbin remarkably fast. Free for developers.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Create Folder with Pixelbin API on New Download Counts from npm API
npm + Pixelbin
 
Try it
Delete File with Pixelbin API on New Download Counts from npm API
npm + Pixelbin
 
Try it
List Files with Pixelbin API on New Download Counts from npm API
npm + Pixelbin
 
Try it
Upload Asset From URL with Pixelbin API on New Download Counts from npm API
npm + Pixelbin
 
Try it
Upload File with Pixelbin API on New Download Counts from npm API
npm + Pixelbin
 
Try it
New Download Counts from the npm API

Emit new event with the latest count of downloads for an npm package. See the documentation.

 
Try it
New Package Version from the npm API

Emit new event when a new version of an npm package is published. See the documentation

 
Try it
Create Folder with the Pixelbin API

Creates a new folder in Pixelbin. See the documentation

 
Try it
Delete File with the Pixelbin API

Deletes a file from Pixelbin. See the documentation

 
Try it
List Files with the Pixelbin API

List all files. See the documentation

 
Try it
Upload Asset From URL with the Pixelbin API

Uploads an asset to Pixelbin from a given URL. See the documentation

 
Try it
Upload File with the Pixelbin API

Upload a file to Pixelbin. See the documentation

 
Try it

Connect Pixelbin

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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();
  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo