with SmugMug and Channable?
Emit new event when a new stock update is created. See the documentation
Emit new event when a stock update is updated. See the documentation
List stock updates for a company and project. See the documentation
Gets details of the authenticated user. See the docs here
Gets an image. An image is a photo or video stored on SmugMug. See the docs here
The SmugMug API provides programmatic access to a user's SmugMug account, allowing them to manage photos, albums, and account settings. With Pipedream, you can automate tasks such as uploading new images, synchronizing photo galleries with other platforms, or triggering actions based on account activity. The API's capabilities paired with Pipedream's serverless platform enable you to craft custom workflows that react to events in SmugMug or orchestrate tasks across multiple apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smugmug: {
type: "app",
app: "smugmug",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smugmug.com/api/v2!authuser`,
headers: {
"Accept": `application/json`,
},
}, {
token: {
key: this.smugmug.$auth.oauth_access_token,
secret: this.smugmug.$auth.oauth_refresh_token,
},
oauthSignerUri: this.smugmug.$auth.oauth_signer_uri,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
channable: {
type: "app",
app: "channable",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.channable.com/v2/companies/${this.channable.$auth.company_id}/projects/${this.channable.$auth.project_id}/orders`,
headers: {
Authorization: `Bearer ${this.channable.$auth.api_token}`,
},
})
},
})