-
Notifications
You must be signed in to change notification settings - Fork 60
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
Would you be open to supporting promises? #53
Comments
@alexbooker Definitely. But I guess the right place to implement it is directly in Also, you can promisify these callback-based functions anytime. 🔮 |
@alexbooker I upgraded the |
@IonicaBizau Awesome 👍 |
Would you mind adding an example to the documentation? I tried: const videoList = await youtubeApi.videos.list({
id: videoId,
part: 'snippet,contentDetails'
}) ... But I'm not getting the result I was expecting. I'm getting a |
@alexbooker I didn't test the code, but by reading the code, I think you have to do something like this: const videoList = await youtubeApi.videos.list({
id: videoId,
part: 'snippet,contentDetails'
}).promise;
// ^ notice the promise field |
@IonicaBizau Thanks, but I don't think that's it. Notice the lack of |
As far as I can tell, the pull request you linked hasn't been merged 😕 |
@alexbooker Oh, that's correct... 😭 |
@IonicaBizau Maybe reopen this issue? |
👍 |
@IonicaBizau when will the new version of the googleapis library be released? it's been 8 months since v2.1.7 and the promise feature should be released to public version asap? |
Hi. Nice work on this module -- I'm using it for my site, Community Casts.
I was wondering, would you be open to accepting a pull request that adds support for
Promise
s?The text was updated successfully, but these errors were encountered: