Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rzkyfirdaus opened this issue Jul 28, 2022 · 2 comments
Open

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

rzkyfirdaus opened this issue Jul 28, 2022 · 2 comments

Comments

@rzkyfirdaus
Copy link

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

@pfaffenrodt
Copy link

@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
Copy link
Contributor

philharmonie commented Feb 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants