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

Different host for some APIs #9

Open gwendall opened 9 years ago

gwendall commented 9 years ago

Some APIs (like Contacts for instance - https://developers.google.com/google-apps/contacts/v3/reference#Feeds) use a different _host than googleapis.com. We should be able to set it through options.

danopia commented 8 years ago

I'm in need of this, doesn't seem like an uncommon usecase - #7 apparently was struggling with it

Included in danopia:google-api for those in need

merlinstardust commented 7 years ago

This is also needed for Classroom.

A workaround is to add a line similar to this in your app GoogleApi._host = 'https://classroom.googleapis.com';