percolatestudio / meteor-google-api

A simple API encapsulating some common patterns regarding Google's APIs
https://atmospherejs.com/percolate/google-api
MIT License
48 stars 30 forks source link

Using Classroom API #28

Closed ghost closed 8 years ago

ghost commented 8 years ago

I can't seem to get Google's Classroom API to work. For example, listing a course:

https://developers.google.com/classroom/reference/rest/v1/courses/list

Gives me a 404.

Calls for doing a get request at https://classroom.googleapis.com but this plugins seems to be made only for https://www.googleapis.com . If I try sending a request to "classroom/v1/courses" (instead of using classroom as a subdomain), it also fails.

Is Classroom API out of scope for this package, or am I doing something wrong?

In advance, thanks.

ghost commented 8 years ago

Forked the repo to make a Classroom-version: https://github.com/kevster/meteor-google-api

merlinstardust commented 8 years ago

You don't have to fork the whole repo to get Classroom to work. Just add

Meteor.startup(function () {
  GoogleApi._host = 'https://classroom.googleapis.com/';
});