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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -