import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitbucket_data_center: {
type: "app",
app: "bitbucket_data_center",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.bitbucket_data_center.$auth.api_url}/rest/api/1.0/projects`,
headers: {
Authorization: `Bearer ${this.bitbucket_data_center.$auth.http_access_token}`,
},
})
},
})
Bitbucket Data Center uses API keys for authentication. When you connect your Bitbucket Data Center account, Pipedream securely stores the keys so you can easily authenticate to Bitbucket Data Center APIs in both code and no-code steps.