Shopify Partner API connection. Listen to events like installs, uninstalls, charges & transactions.
The Shopify Partner API lets you tap into a comprehensive suite of features to manage and analyze multiple Shopify stores. You can automate tasks like creating development stores, adding collaborators, tracking payouts, and more. This API serves as a powerful tool for developers, agencies, and freelancers who manage multiple Shopify shops for their clients. Through Pipedream, you can effortlessly integrate Shopify Partner API with other services to create tailored, efficient workflows that save time and enhance productivity.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
shopify_partner: {
type: "app",
app: "shopify_partner",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://partners.shopify.com/${this.shopify_partner.$auth.organization_id}/api/2021-07/graphql.json`,
headers: {
'X-Shopify-Access-Token': this.shopify_partner.$auth.api_key,
'Content-Type': 'application/x-www-form-urlencoded'
},
method: 'POST',
params: {
query: `{
publicApiVersions {
handle
}
}
`,
},
})
},
})
The SWAPI - Star Wars API is a treasure trove of structured data from the Star Wars universe. It's a go-to resource for fetching information about planets, spaceships, vehicles, people, films, and species from the iconic franchise. Using Pipedream, you can harness this data to create automations and workflows that trigger based on specific criteria from SWAPI. For instance, you could set up a workflow that notifies you when new data is added, enrich customer profiles with their favorite Star Wars characters, or even use it for trivia games by pulling random facts.
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/`,
})
},
})