-
Notifications
You must be signed in to change notification settings - Fork 1
OAuth Server 2 Server #3
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
base: master
Are you sure you want to change the base?
Conversation
@Skullbock Ready for review. <?php
require 'vendor/autoload.php';
// @see https://marketplace.zoom.us/docs/guides/build/server-to-server-oauth-app/
$account_id = '...';
$apiKey = "...";
$apiSecret = "...";
// Valid for 1 hour.
$oauth_token = \Weble\Zoom\OAuth::generateToken($apiKey, $apiSecret, $account_id);
$config = \Weble\Zoom\Configuration::getDefaultConfiguration()->setAccessToken($oauth_token);
$apiInstance = new \Weble\Zoom\Api\UsersApi(
new \GuzzleHttp\Client(),
$config
);
$users = $apiInstance->users();
print_r($users); I tested with this and it worked like a charm. |
Also as we use it for almost one year in production, we might remove this scary warning that basically makes sure others won't contribute to it :) |
Hi Aron, great job! i would love to do a couple of more things (if you can help, glad to have your help!): |
I'd say here it's out of scope, but for sure it's a logical move. |
@AronNovak if you can, check #4 with the new requirements and some other stuff :) |
#2