import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nuvemshop: {
type: "app",
app: "nuvemshop",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.tiendanube.com/2025-03/${this.nuvemshop.$auth.user_id}/products`,
headers: {
"authentication": `${this.nuvemshop.$auth.oauth_access_token}`,
"user-agent": `@PipedreamHQ/pipedream v0.1`,
},
})
},
})
Nuvemshop (TiendaNube) uses OAuth authentication. When you connect your Nuvemshop (TiendaNube) account, Pipedream will open a popup window where you can sign into Nuvemshop (TiendaNube) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Nuvemshop (TiendaNube) API.
Pipedream requests the following authorization scopes when you connect your account:
write_contentread_productswrite_productsGEThttps://www.tiendanube.com/apps/{{oauth.client_id}}/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}POSThttps://www.tiendanube.com/apps/authorize/tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=authorization_code&code={{oauth.code}}