Description Usage Arguments Details Value Functions Author(s)
Function for interacting with the GitHub API
1 2 3 4 5 6 7 8 | callGitHubAPI(repoName, token, apiURL = "https://api.github.com",
path = "/user/repos", encoding = c("json", "form"), method = httr::POST)
createGitHubRepo(repoName, token)
deleteGitHubRepo(owner, repoName, token)
checkGitHubRepoExists(owner, repoName, token)
|
repoName |
Name of repo to interact with |
token |
GitHub Personal Access Token: this should be the actual token, not the name of an environment variable |
apiURL |
The base URL for the GitHub API, this really should not need to be changed |
path |
The API endpoint |
encoding |
The type of encoding for the request, either json of form |
method |
The method to be used, as an R function, such as POST or GET |
owner |
GitHub username |
Builds up and executes a GitHub API request
An API status
createGitHubRepo
: Creating a GitHub Repo
deleteGitHubRepo
: Deleting a GitHub Repo
checkGitHubRepoExists
: Check that a GitHub Repo exists
Jared P. Lander
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.