github_api: github_api

Description Usage Arguments Value Examples

View source: R/data_access.R

Description

github_api

Usage

1
2
github_api(path, token = github_pat(),
  user_agent = httr::user_agent("https://github.com/adam-gruer/ozunConfIssues"))

Arguments

path

the path to a github API v3 endpoint , excluding the root https://api.github.com

token

a github personal access token

Value

a list of class github_api containing 3 elements: content - parsed json data, path - the url of the api endpoint the data was requested from, response - the complete response from the request

Examples

1
github_api("/repos/ropensci/ozunconf17/issues")

adam-gruer/ozunConfIssues documentation built on May 28, 2019, 3:53 p.m.