import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
phrase: {
type: "app",
app: "phrase",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.phrase.com/v2/projects`,
headers: {
"Authorization": `token ${this.phrase.$auth.access_token}`,
},
})
},
})
Phrase uses API keys for authentication. When you connect your Phrase account, Pipedream securely stores the keys so you can easily authenticate to Phrase APIs in both code and no-code steps.
You can create and manage access tokens in your profile settings in Translation Center or via the Authorizations API.