Once you've made changes to the JSON payload, choose Extract parameters and run request. Under the JSON Payload section inside the Request Details panel, type your changes to the JSON payload by modifying/adding/removing parameters.Once you've modified the request, choose Run request. The + icon to add parameters or the x icon to remove them. Under the Request parameters section, choose.You can also copy the code snippets onto clipboard by clicking the Copy button.To download a copy of any code snippet, click on Save code.For example, copy the curl snippet to clipboard and paste it in the terminal to see API response. You can directly consume these code snippets to ease your integration with Product Advertising API. Scratchpad also returns cooked-up code snippets in JAVA, PHP and cURL based on the request.To save the response, click on Save response and the response will be saved in a text file containing request and response information.You can copy this using the Copy button situated at top-right of the section. HTML Response: The HTML+CSS code for the rendered response. JSON Response: The raw API response in JSON format.This is created using a HTML/CSS template and focuses on displaying some popular elements from the API response. Rendered Response: The way response appears on a webpage.On a successful request, the scratchpad displays following information as response:.If your request is successful, you'll see the raw API response in JSON Response tab under the Response Section. For more information on resources, refer Resources. Add resources by selecting from valid list of resources for the operation. Resources determine what information will be returned in the API response. For list of valid parameters for an operation, refer Operations under API Reference. However, an operation may have more parameters which can be added using Add a new Parameter and hitting the + icon. Popular parameters corresponding to an operation are already displayed in this panel. Under Common parameters, enter the following information (For information on common parameters, refer Common Request Parameters):Ĭreate a request by entering details under Request Parameters. Use the Locale Reference Table below to choose the Scratchpad URL for the target locale.Ĭhoose an operation from the left panel (for example, SearchItems). Go to Product Advertising API 5.0 Scratchpad. Use the Locale Reference Table below to choose the Scratchpad URL for the target locale. You can get a quick tour of scratchpad by heading over to the tool and clicking on Start Tour on top right section of the navigation header. Using the following Locale Reference Table, choose the Product Advertising API 5.0 Scratchpad URL for the locale that you want. Scratchpad is hosted at all the supported locales separately. You'll find the current version of scratchpad here. This section is a brief user guide of Product Advertising API 5.0 Scratchpad. If you don't have valid associate credentials, please refer Sign up as an Amazon Associate and Sign up for Product Advertising API in order. You won't be able to use Scratchpad without valid credentials.
0 Comments
Leave a Reply. |