HTTP Request returned Status Code 401. Invalid access token
rzkyfirdaus opened this issue · comments
rzkyfirdaus commented
why my api postman error = MacsiDigital\API\Exceptions\HttpException: HTTP Request returned Status Code 401. Invalid access token.
pfaffenrodt commented
@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
Same here. The Readme does not show where to get the access token from.
Steps to reproduce:
- Sign in at https://marketplace.zoom.us/
- Click on Develop and "Build App"
- In OAuth Section click on "Create"
- Create an account-level app
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);
});