MacsiDigital / laravel-zoom

Laravel Zoom Package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP Request returned Status Code 401. Invalid access token

rzkyfirdaus opened this issue · comments

why my api postman error = MacsiDigital\API\Exceptions\HttpException: HTTP Request returned Status Code 401. Invalid access token.

@rzkyfirdaus I would suggest, that you wrap the request or add an Exception Handler

status code seems to be forwared
https://github.com/MacsiDigital/laravel-api-client/blob/9a0ac4d7076b6423a5df6f8243897799b60dcdb0/src/Support/Builder.php#L248

Same here. The Readme does not show where to get the access token from.
Steps to reproduce:

The app has been created and I see a Client ID what I set for ZOOM_CLIENT_KEY and a Client Secret what I set for ZOOM_CLIENT_SECRET.

I created a test route, that throws the code 401:

Route::get('playground', function () {
    $users = Zoom::user()->all();
    dd($users);
});