with Etsy and Azure OpenAI?
Emit new event when a new shop receipt is created. See the Documentation
Emit new event when a new transaction is created. See the Documentation
Creates a physical draft listing product in a shop on the Etsy channel. See the Documentation
Create completions for chat messages with the GPT-35-Turbo and GPT-4 models. See the documentation
Open API V3 endpoint to delete a ShopListing. A ShopListing can be deleted only if the state is one of the following: SOLD_OUT
, DRAFT
, EXPIRED
, INACTIVE
, ACTIVE
and is_available
or ACTIVE
and has seller flags: SUPRESSED
(frozen), VACATION
, CUSTOM_SHOPS
(pattern), SELL_ON_FACEBOOK
. See the Documentation
Classify items into specific categories. See the documentation
Etsy is a global e-commerce platform specializing in handmade, vintage, and craft items. It offers a marketplace where artisans can connect directly with buyers. The term 'Etsy' is a trademark of Etsy, Inc. This application uses the Etsy API but is not endorsed or certified by Etsy.
The Etsy API provides a rich interface to interact with the popular e-commerce platform known for its unique, handmade, and vintage items. Using the Etsy API via Pipedream, you can automate various aspects of your Etsy shop, including inventory management, order processing, and customer engagement. It opens up possibilities for streamlining mundane tasks, reacting to shop events in real-time, and syncing data across different platforms, enhancing the efficiency and responsiveness of your online business operations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
etsy: {
type: "app",
app: "etsy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://openapi.etsy.com/v3/application/users/me`,
headers: {
Authorization: `Bearer ${this.etsy.$auth.oauth_access_token}`,
"x-api-key": `${this.etsy.$auth.oauth_client_id}`,
},
})
},
})
The Azure OpenAI Service API provides access to powerful AI models that can understand and generate human-like text. With Pipedream, you can harness this capability to create a variety of serverless workflows, automating tasks like content creation, code generation, and language translation. By integrating the API with other apps on Pipedream, you can streamline processes, analyze sentiment, and even automate customer support.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_openai_service: {
type: "app",
app: "azure_openai_service",
}
},
async run({steps, $}) {
const data = {
"messages": [{ role: 'user', content: "Hello, world!" }],
}
return await axios($, {
method: "post",
url: `https://${this.azure_openai_service.$auth.resource_name}.openai.azure.com/openai/deployments/${this.azure_openai_service.$auth.deployment_name}/chat/completions?api-version=2023-05-15`,
headers: {
"Content-Type": `application/json`,
"api-key": `${this.azure_openai_service.$auth.api_key}`,
},
data,
})
},
})