This topic was automatically generated from Slack. You can find the original thread here.
Anyone worked with the Amazon Advertising API step before?
Looking to have products programmatically recommended based on user inputs - can’t quite work it out
Anyone worked with the Amazon Advertising API step before?
Looking to have products programmatically recommended based on user inputs - can’t quite work it out
I understand you’re looking to use the Amazon Advertising API to recommend products based on user inputs. To help you better, can you please provide more details about the specific API endpoints you’d like to use and the user inputs you’re working with? This will help me guide you in the right direction and provide relevant code examples if needed.
I understand you’re looking to use the Amazon Advertising API to recommend products based on user inputs. While I don’t have a specific example for that API, you can start by creating a Pipedream component that makes requests to the Amazon Advertising API using the user inputs as parameters. First, you’ll need to authenticate with the Amazon Advertising API and obtain the necessary credentials. Once you have the credentials, you can use the axios package from @pipedream/platform to make requests to the API. Here’s a basic example of a Pipedream component that you can modify to make requests to the Amazon Advertising API: ```
import { axios } from “@pipedream/platform”; export default defineComponent({ props: { userInput: { type: “string”, label: “User Input”, }, // Add any other required props for the API request }, async run({ steps, $ }) { // Replace the URL and parameters with the ones required for the Amazon Advertising API const url = https://api.amazon.com/your-api-endpoint; const params = { userInput: this.userInput, // Add any other required parameters for the API request }; // Replace the headers with the ones required for the Amazon Advertising API const headers = { // Add your authentication headers (e.g., API key, access token, etc.) }; const response = await axios($, { method: “GET”, url: url, params: params, headers: headers, }); return response; }, });