File tree 1 file changed +6
-6
lines changed
source/includes/wp-api-v1
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -206,17 +206,17 @@ This API lets you retrieve and view a list of top sellers report.
206
206
<div class =" api-endpoint " >
207
207
<div class="endpoint-data">
208
208
<i class="label label-get">GET</i>
209
- <h6>/wp-json/wc/v1/reports/sales/ top_sellers</h6>
209
+ <h6>/wp-json/wc/v1/reports/top_sellers</h6>
210
210
</div>
211
211
</div >
212
212
213
213
``` shell
214
- curl https://example.com/wp-json/wc/v1/reports/sales/ top_sellers? period=last_month \
214
+ curl https://example.com/wp-json/wc/v1/reports/top_sellers? period=last_month \
215
215
-u consumer_key:consumer_secret
216
216
```
217
217
218
218
``` javascript
219
- WooCommerce .get (' reports/sales/ top_sellers?period=last_month' , function (err , data , res ) {
219
+ WooCommerce .get (' reports/top_sellers?period=last_month' , function (err , data , res ) {
220
220
console .log (res);
221
221
});
222
222
```
@@ -227,20 +227,20 @@ $query = [
227
227
'period' => 'last_month'
228
228
];
229
229
230
- print_r($woocommerce->get('reports/sales/ top_sellers', $query));
230
+ print_r($woocommerce->get('reports/top_sellers', $query));
231
231
?>
232
232
```
233
233
234
234
``` python
235
- print (wcapi.get(" reports/sales/ top_sellers?period=last_month" ).json())
235
+ print (wcapi.get(" reports/top_sellers?period=last_month" ).json())
236
236
```
237
237
238
238
``` ruby
239
239
query = {
240
240
period: " last_month"
241
241
}
242
242
243
- woocommerce.get(" reports/sales/ top_sellers" , query).parsed_response
243
+ woocommerce.get(" reports/top_sellers" , query).parsed_response
244
244
```
245
245
246
246
> JSON response example:
You can’t perform that action at this time.
0 commit comments