import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
autodesk: {
type: "app",
app: "autodesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.userprofile.autodesk.com/userinfo`,
headers: {
Authorization: `Bearer ${this.autodesk.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
Emit new event when a new version of a file is created in Autodesk. See the documentation
Emit new event when a folder is added to a specified folder in Autodesk. See the documentation
Emit new event when a new project is created in Autodesk. See the documentation
Creates a new folder in a project in Autodesk. See the documentation
Uploads a new file to a specified folder in Autodesk. See the documentation.
Autodesk uses OAuth authentication. When you connect your Autodesk account, Pipedream will open a popup window where you can sign into Autodesk and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Autodesk API.
Pipedream requests the following authorization scopes when you connect your account:
data:read data:create
GET
https://developer.api.autodesk.com/authentication/v2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
prompt=login
&
code_challenge={{oauth.token}}
&
code_challenge_method=S256
&
scope={{oauth.comma_separated_scopes}}
POST
https://developer.api.autodesk.com/authentication/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
&
code_verifier={{oauth.verifier}}
POST
https://developer.api.autodesk.com/authentication/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}
&
scope={{oauth.comma_separated_scopes}}