@@ -11,6 +11,7 @@ An API client for Envato in PHP, with simplified OAuth, token storage, and reque
1111- [ Sending Requests] ( #sending-requests )
1212 - [ Getting Request Time] ( #getting-request-time )
1313 - [ Rate Limiting] ( #rate-limiting )
14+ - [ Custom Requests] ( #custom-requests )
1415- [ Catalog] ( #catalog )
1516 - [ Look up a public collection] ( #look-up-a-public-collection )
1617 - [ Look up a single item] ( #look-up-a-single-item )
@@ -40,7 +41,7 @@ An API client for Envato in PHP, with simplified OAuth, token storage, and reque
4041 - [ Get the current user's username] ( #get-the-current-users-username )
4142 - [ Get the current user's email] ( #get-the-current-users-email )
4243 - [ Get the user's sales by month] ( #get-the-users-sales-by-month )
43- - [ Get the user's statement (NEW) ] ( #get-the-users-statement-new )
44+ - [ Get the user's statement] ( #get-the-users-statement )
4445- [ Market] ( #market )
4546 - [ Get total number of users] ( #get-total-number-of-users )
4647 - [ Get total number of items] ( #get-total-number-of-items )
@@ -202,6 +203,19 @@ catch (TooManyRequestsException $e) {
202203}
203204```
204205
206+ ### Custom Requests
207+
208+ If there is a new endpoint which is not yet available in this package, you may use the ` $request ` property on the
209+ client to manually send the request until it is added.
210+
211+ There are methods available for each request type (` get ` , ` post ` , etc). Pass the path as the first parameter. Pass your
212+ POST body variables as the second parameter, these will also replace variables in the path denoted by ` {} ` .
213+
214+ ``` php
215+ $client->request->get('/v1/market/user:{username}.json', [
216+ 'username' => 'collis'
217+ ]);
218+ ```
205219
206220## Catalog
207221
@@ -373,10 +387,16 @@ $client->user->email();
373387$client->user->sales();
374388```
375389
376- ### Get the user's statement (NEW)
390+ ### Get the user's statement
377391
378392``` php
379- $client->user->statement(['page' => 1, 'from_date' => '2021-02-01, 'to_date' => '2022-06-21', 'type' => 'Sale', 'site' => 'codecanyon']);
393+ $client->user->statement([
394+ 'page' => 1,
395+ 'from_date' => '2021-02-01',
396+ 'to_date' => '2022-06-21',
397+ 'type' => 'Sale',
398+ 'site' => 'codecanyon.net'
399+ ]);
380400```
381401
382402
0 commit comments