You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to reopen #28. While I found a solution by changing the _host variable in a Meteor.startup call, it feels wrong to me. I think it'd be great if there was an option to configure if you're using Classroom or not. So on each call, you could have GoogleApi.get('some/endpoint', {isClassroomCall: true}). And if people wanted, they could set that as the default in a Meteor.startup call.
Alternatively, it could made to be like Google's node library where you can call google.classroom or google.drive. I believe this would require some abstraction and then simply creating a lengthy list of google.x._endpoint = '/x';. That does seem somewhat cumbersome, and is probably why you didn't do it that way, but it would make things a little nicer for those developing with the package.
The text was updated successfully, but these errors were encountered:
I'd like to reopen #28. While I found a solution by changing the
_host
variable in aMeteor.startup
call, it feels wrong to me. I think it'd be great if there was an option to configure if you're using Classroom or not. So on each call, you could haveGoogleApi.get('some/endpoint', {isClassroomCall: true})
. And if people wanted, they could set that as the default in aMeteor.startup
call.Alternatively, it could made to be like Google's node library where you can call
google.classroom
orgoogle.drive
. I believe this would require some abstraction and then simply creating a lengthy list ofgoogle.x._endpoint = '/x';
. That does seem somewhat cumbersome, and is probably why you didn't do it that way, but it would make things a little nicer for those developing with the package.The text was updated successfully, but these errors were encountered: