Payhere

Easy payment links

Integrate the Payhere API with the SWAPI - Star Wars API

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

Get Film with SWAPI - Star Wars API on New Webhook Event (Instant) from Payhere API
Payhere + SWAPI - Star Wars
 
Try it
New Webhook Event (Instant) from the Payhere API

Emit new event for each new webhook event

 
Try it
Get Film with the SWAPI - Star Wars API

Get a film

 
Try it

Connect Payhere

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    payhere: {
      type: "app",
      app: "payhere",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.payhere.$auth.environment}.payhere.co/api/v1/user`,
      headers: {
        Authorization: `Bearer ${this.payhere.$auth.api_key}`,
      },
    })
  },
})

Connect SWAPI - Star Wars

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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/`,
    })
  },
})