Skip to content

Commit

Permalink
Update to V3 of the API (#26)
Browse files Browse the repository at this point in the history
* Update baseUrl to V3

* Update example in README to V3
  • Loading branch information
TVke authored Jan 30, 2023
1 parent b9fda59 commit 763e32f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ use TimothyDC\LightspeedRetailApi\Facades\LightspeedRetailApi;
$account = LightspeedRetailApi::api()->account()->get();

// filter with GET (with a limit and custom sorting
$categories = LightspeedRetailApi::api()->category()->get(null, ['limit' => 10, 'orderby' => 'name']);
$categories = LightspeedRetailApi::api()->category()->get(null, ['limit' => 10, 'sort' => 'name']);

// get category with ID 20
$categories = LightspeedRetailApi::api()->category()->get(20);
Expand Down
2 changes: 1 addition & 1 deletion src/Services/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ApiClient
public const GRANT_TYPE_AUTHORIZATION_CODE = 'authorization_code';
public const GRANT_TYPE_REFRESH_TOKEN = 'refresh_token';

private string $baseUrl = 'https://api.merchantos.com/API/Account/';
private string $baseUrl = 'https://api.lightspeedapp.com/API/V3/Account/';

private string $client_id;
private string $client_secret;
Expand Down

0 comments on commit 763e32f

Please sign in to comment.