MacsiDigital / laravel-zoom

Laravel Zoom Package
MIT License
261 stars 135 forks source link

HTTP Request returned Status Code 401. Invalid access token #124

Open rzkyfirdaus opened 2 years ago

rzkyfirdaus commented 2 years ago

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

pfaffenrodt commented 2 years ago

@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

philharmonie commented 1 year ago

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);
});