Skip to content

Commit 02a493f

Browse files
authored
Update fablabs to new API endpoint (#1417)
1 parent 36604b2 commit 02a493f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Fablabs/Provider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function getTokenUrl(): string
2727
*/
2828
protected function getUserByToken($token)
2929
{
30-
$response = $this->getHttpClient()->get($this->getInstanceUri().'0/me.json', [
30+
$response = $this->getHttpClient()->get($this->getInstanceUri().'api/me', [
3131
RequestOptions::HEADERS => [
3232
'Authorization' => 'Bearer '.$token,
3333
],
@@ -52,7 +52,7 @@ protected function mapUserToObject(array $user)
5252

5353
protected function getInstanceUri()
5454
{
55-
return $this->getConfig('instance_uri', 'https://api.fablabs.io/');
55+
return $this->getConfig('instance_uri', 'https://www.fablabs.io/');
5656
}
5757

5858
public static function additionalConfigKeys(): array

src/Fablabs/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,4 @@ return Socialite::driver('fablabs')->redirect();
6666

6767
### Reference
6868

69-
- [Fablabs.io](https://fablabs.io/);
70-
- [OAuth authorization Docs](https://docs.fablabs.io/);
69+
- [Fablabs.io](https://www.fablabs.io/oauth/applications) (Login and go to the Developer Console)

0 commit comments

Comments
 (0)