RingCentral

Business communications platform

Go to site

Integrate the RingCentral API with the SWAPI - Star Wars API

Setup the RingCentral API trigger to run a workflow which integrates with the SWAPI - Star Wars API. Pipedream's integration platform allows you to integrate RingCentral and SWAPI - Star Wars remarkably fast. Free for developers.

Connect RingCentral

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    ringcentral: {
      type: "app",
      app: "ringcentral",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.ringcentral.$auth.instancetype}.ringcentral.com/restapi/v1.0/account/~`,
      headers: {
        Authorization: `Bearer ${this.ringcentral.$auth.oauth_access_token}`,
      },
    })
  },
})

Connect SWAPI - Star Wars

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    swapi: {
      type: "app",
      app: "swapi",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://swapi.dev/api/films/1/`,
    })
  },
})