with Autodesk and MyOTP.App?
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
Generate a One Time Password (OTP) and send it to the specified phone number. See the documentation
Validate the OTP for successful verification. See the documentation
Uploads a new file to a specified folder in Autodesk. See the documentation
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
myotp_app: {
type: "app",
app: "myotp_app",
}
},
async run({steps, $}) {
const data = {
"phone_number": this.myotp_app.$auth.phone_number,
}
return await axios($, {
method: "post",
url: `https://api.myotp.app/generate_otp`,
headers: {
"X-API-Key": `${this.myotp_app.$auth.api_key}`,
},
data,
})
},
})