Skip to content

Commit

Permalink
Driver getting the token correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
aislandener committed Jan 8, 2022
1 parent 0f09791 commit 99b9345
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.1

* Driver getting the token correctly

## 0.1.0

* Create file config
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "aislandener/mix-telematics-laravel",
"description": "MiX Telematics Communication API with Laravel",
"type": "library",
"version": "0.1.0",
"version": "0.1.1",
"require": {
"php": "^8.0",
"jumbojett/openid-connect-php": "^0.9.3",
Expand Down
2 changes: 1 addition & 1 deletion src/MixTelematicsLaravelService.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ public function getToken()
}

public function getDriversOrganisation(){
return Http::withToken($this->token)->get($this->restBaseUrl . "/api/drivers/organisation/{$this->organisationId}")->json();
return Http::withToken($this->token->access_token)->get($this->restBaseUrl . "/api/drivers/organisation/{$this->organisationId}")->json();
}
}

0 comments on commit 99b9345

Please sign in to comment.