with Amara and Lokalise?
Emit new event when data is imported into a project
Emit new event when a new task is created in Lokalise
Emit new event when subtitles have been published. See the docs here
Emit new event when subtitles have been unpublished. See the docs here
The Amara API provides programmatic access to Amara’s community-driven subtitle creation and translation services. With this API, you can automate subtitle workflows, streamline video content translation, and integrate with other services to create efficient localization processes. The API allows you to manage videos, subtitles, and teams, offering a doorway to effortlessly scaling your video content to reach global audiences.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
amara: {
type: "app",
app: "amara",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://amara.org/api/users/teams/`,
headers: {
"X-api-key": `${this.amara.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lokalise: {
type: "app",
app: "lokalise",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lokalise.com/api2/projects`,
headers: {
Authorization: `Bearer ${this.lokalise.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})