GAS: How to use UrlFetchApp to search private repo via GitHub API, with authentication? -


am trying scrape data private repo using github's api via google apps script (gas).

i have accesstoken seems work normal things, when comes doing searches issues, accesstoken not accepted.

https://api.github.com/search/issues?q=repo:esaruoho/ztracker_mac+state:open (+at)

i'm trying access private repo (not 1 linked here, public, , link works) , attach

?access_token=token 

at end, reason not seem work. there other way of authentication?

i'm trying figure out how modify urlfetchapp.fetch input required headers authenticate, i'm not figuring out kind of stuff github authenticates with

here's trying do:

https://api.github.com/search/issues?q=repo:esaruoho/ztracker_mac+state:open?access_token=yourtoken 

notice how have question mark (?) in url, can't put 2 in, have change question mark ampersand (&)

https://api.github.com/search/issues?q=repo:esaruoho/ztracker_mac+state:open&access_token=yourtoken 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -