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

Allow for a different host #32

Closed BetoFrega closed 4 years ago

BetoFrega commented 8 years ago

Check if path begins with "http://" or "https://" and refrain from preppeding the default host if it does. Changed in order to be able to use the package with Google Spreadsheets API (that uses a different host).

danopia commented 8 years ago

Looks like this duplicates #9 but merges better.

Don't mind me just a bystander

nicholasalanbrown commented 7 years ago

Could we possibly merge this? Right now this package isn't usable with any of the APIs not hosted at the hardcoded path....

danopia commented 7 years ago

Alternate hosts is super essential for a lot of the Google APIs, so this really should merge.

If you need this asap, I've been maintaining a fork at danopia:google-api. It supports a host argument eg:

  {sheets} = GoogleApi.get 'v4/spreadsheets/' + docId,
    host: 'https://sheets.googleapis.com'
    user: Meteor.users.findOne @userId
tmeasday commented 7 years ago

@danopia would you be interested in becoming a maintainer for this package? We aren't actively using it at the moment, would be good to get someone involved who is using it day to day.

TusharKoul commented 7 years ago

can this be merged please, I want to use google spreadsheets api but cant do it without this