with Azure DevOps (Microsoft Entra ID OAuth) and Short.io?
Returns detailed statistics for a domain in given period. See the documentation
Update original URL, title or path for existing URL by id. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_devops_microsoft_entra_id_oauth: {
type: "app",
app: "azure_devops_microsoft_entra_id_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://dev.azure.com/${this.azure_devops_microsoft_entra_id_oauth.$auth.organization}/_apis/projects`,
headers: {
Authorization: `Bearer ${this.azure_devops_microsoft_entra_id_oauth.$auth.oauth_access_token}`,
"content-type": `application/json`,
},
params: {
"api-version": `7.1`,
},
})
},
})
Short.io provides a robust API for URL shortening, allowing you to create, delete, and track shortened links programmatically. By integrating with Pipedream, you can automate link creation or aggregation of click data in real-time, triggering workflows in response to events like link clicks or creating short links in bulk from a data source.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
short: {
type: "app",
app: "short",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.short.io/api/domains`,
headers: {
"Accept": `application/json`,
"Authorization": `${this.short.$auth.secret_key}`,
},
})
},
})