MacsiDigital / laravel-zoom

Laravel Zoom Package
MIT License
257 stars 135 forks source link

Retrieve User Settings #85

Open Nievac opened 3 years ago

Nievac commented 3 years ago

I am trying to get the settings of a user by doing this: Zoom::user()->find($user)->settings;

But unfortunately, the return object is only the user_id , nothing more. I expect the response data to be something like in the https://marketplace.zoom.us/docs/api-reference/zoom-api/users/usersettings.

Am I missing something?

colinhall17 commented 3 years ago

Hi @Nievac

Thanks for reaching out.

I've just checked the docs and it looks like it doesn't pass back the settings by default.

Can you try:-

Zoom::user()->find($user)->settings()->first();

and see what it returns

Nievac commented 3 years ago

It shows an exception like this.

MacsiDigital\API\Exceptions\HttpException
HTTP Request returned Status Code 404. User does not exist: settings.