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

Cannot use multiple Admin SDK APIs simultaneously with one client #132

Closed
jsenick opened this issue Jan 23, 2014 · 1 comment
Closed

Cannot use multiple Admin SDK APIs simultaneously with one client #132

jsenick opened this issue Jan 23, 2014 · 1 comment
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@jsenick
Copy link
Contributor

jsenick commented Jan 23, 2014

I'm trying to use both the Directory API and the Reports API from the Admin SDK for Google Apps. However, I seem to be able to discover only one of these at a time with a single client. I'm designing an application that needs to use both. Here's the code that will show this problem:

googleapis.discover('admin', 'directory_v1')
    .discover('admin', 'reports_v1')
    .discover('oauth2', 'v2')
    .execute( function (err, client) {
        console.log(client);
    });

If you look at the output in the console, you'll see that client.admin is set up for directory_v1, client.oauth2 is set up as usual, but reports_v1 is nowhere to be found. Can this be addressed?

@jsenick
Copy link
Contributor Author

jsenick commented Jan 23, 2014

See pull request #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants