with Freelancer and Microsoft Azure AI Translator?
Identifies the positioning of sentence boundaries in a piece of text. See the documentation
Identifies the language of a piece of text. See the documentation
Translate text into the specified language. See the documentation
The Freelancer API offers a programmatic way to interact with Freelancer.com, enabling you to automate tasks like searching for projects, posting jobs, managing bids, and communicating with users. By integrating this API with Pipedream, you can create powerful, serverless workflows that streamline your freelance business operations or help you build tools that assist others in managing their freelancing tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
freelancer: {
type: "app",
app: "freelancer",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.freelancer.com/api/users/0.1/self/`,
headers: {
Authorization: `Bearer ${this.freelancer.$auth.oauth_access_token}`,
"freelancer-oauth-v1": `${this.freelancer.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_azure_ai_translator: {
type: "app",
app: "microsoft_azure_ai_translator",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.microsoft_azure_ai_translator.$auth.endpoint}/languages`,
headers: {
"Ocp-Apim-Subscription-Key": `${this.microsoft_azure_ai_translator.$auth.api_key}`,
"Ocp-Apim-Subscription-Region": `${this.microsoft_azure_ai_translator.$auth.location}`,
"Content-Type": `application/json`,
},
params: {
"api-version": `3.0`
},
})
},
})