The Leiga API unlocks the potential to automate and streamline your graphic design operations. By integrating with Pipedream, you can trigger workflows using events from other apps, manipulate and store data, or even orchestrate complex operations among various services. Whether you're looking to automate image processing, streamline asset management, or create dynamic marketing campaigns, Pipedream's serverless platform lets you build scalable and efficient workflows with the Leiga API.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
leiga: {
type: "app",
app: "leiga",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.leiga.com/openapi/api/org/all-member-list`,
headers: {
"accessToken": `${this.leiga.$auth.oauth_access_token}`,
},
params: {
pageNumber: `1`,
pageSize: `10`,
},
})
},
})
Automated Image Processing Pipeline: Use the Leiga API to create a workflow that listens for new images uploaded to a cloud storage platform like Dropbox. Once a new image is detected, the workflow can automatically send it to Leiga for processing, and then store the processed image back in Dropbox or another service like Google Drive.
Dynamic Marketing Material Generation: Combine Leiga with a CRM app like HubSpot in Pipedream. Set up a workflow to generate personalized marketing materials using customer data from HubSpot. When a new lead is added to your CRM, Pipedream can trigger Leiga to produce custom graphics tailored to the lead's interests, significantly enhancing your engagement strategy.
Social Media Content Management: Integrate Leiga API with social media platforms such as Twitter or Instagram via Pipedream. Construct a workflow where design requests posted to a specific Slack channel are automatically picked up, processed through Leiga to create social media-ready images, and then posted to your chosen social media accounts, all without manual intervention.
Leiga uses OAuth authentication. When you connect your Leiga account, Pipedream will open a popup window where you can sign into Leiga and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Leiga API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://app.leiga.com/openapi/api/authorize/access-token
content-type: application/json
accept: application/json
clientId={{custom_fields.client_id}}
&
secretKey={{custom_fields.client_secret}}
POST
https://app.leiga.com/openapi/api/authorize/refresh-token
content-type: application/json
accept: application/json
clientId={{custom_fields.client_id}}
&
secretKey={{custom_fields.client_secret}}
&
refreshToken={{custom_fields.refresh_token}}