with Product Hunt and Autodesk?
Emit new event when a product posted by a user hits 100+ upvotes.
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
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
The Product Hunt API taps into a vibrant community of tech enthusiasts and makers, allowing you to interact with their platform programmatically. With it, you can retrieve details on the latest trending products, post comments, and gather user data. Automating these interactions can keep you informed on tech trends, engage with the community, and analyze market interests.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
product_hunt: {
type: "app",
app: "product_hunt",
}
},
async run({steps, $}) {
const data = {
"query": `{
viewer {
user {
id
username
}
}
}`,
}
return await axios($, {
method: "post",
url: `https://api.producthunt.com/v2/api/graphql`,
headers: {
Authorization: `Bearer ${this.product_hunt.$auth.oauth_access_token}`,
},
data,
})
},
})
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`,
},
})
},
})