I want to know how to get products in the ranking with the new amazon sdk (api) called PA-API v5.0 (Amazon API).
I want to get salesrank (sales ranking), but I don't know the detailed method because of the new api.
The language is PHP.
We aim to get rankings with reference to the following website.
The code is as follows.
// $keyword = 'Backworld'; $searchIndex = "Books"; $browseNodeId = "507300"; $itemCount = 1; $resources = array ( SearchItemsResource :: ITEM_INFOTITLE, SearchItemsResource :: OFFERSLISTINGSPRICE); $searchItemsRequest = new SearchItemsRequest (); $searchItemsRequest->setSearchIndex ($searchIndex); // $searchItemsRequest->setKeywords ($keyword); $searchItemsRequest->setItemCount ($itemCount); $searchItemsRequest->setBrowseNodeId ($browseNodeId); $searchItemsRequest->setPartnerTag ($partnerTag); $searchItemsRequest->setPartnerType (PartnerType :: ASSOCIATES); $searchItemsRequest->setResources ($resources);
(In this state, the keyword is not selected and an error occurs.)
Question 1: How to get sales ranking of browseNodeId = 507300 (genre) in Books (category)
If i know anyone, please teach us.
Answer # 1
If you want to include ranking in the result data, you can add it to $resources
If you are using the official SDK, you can specify all the data that can be acquired with this.
$resources = SearchItemsResource :: getAllowableEnumValues ();
Get the ranking order
TopSellers: Check back later for updates!
- i want to install php74 on amazon cloud9
- php - simple ec site i want to display products by combining the dates of multiple products purchased on the same date and time
- php - about "update" when adding products in the shop to the cart while creating an ec site
- php - i want to save images using amazon s3 with the laravel app deployed on heroku
- php - ec site for products in stock inventory management method
- php - the order of products on the app changes
- php : What's the best approach for organizing the API and back end?
- regarding the acquisition and output of php legal api
- [cakephp4] i want to set the cache engine settings for each site
- [cakephp3] become a missing controller (what to do if documentroot and webroot are different)
- i'm having trouble using the paginate part of php
- is authentication using an access token secure with swift + cakephp?
- about webphp and apiphp when using vuejs with laravel
- i want to create multiple approvals for cakephp4 authentication plugins
- i can't calculate variables in php
- [execution of python from php] how to describe environment variables of requests in php file