callGitHubAPI: callGitHubAPI

Description Usage Arguments Details Value Functions Author(s)

Description

Function for interacting with the GitHub API

Usage

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)

Arguments

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

Details

Builds up and executes a GitHub API request

Value

An API status

Functions

Author(s)

Jared P. Lander


jaredlander/RepoGenerator documentation built on May 10, 2019, 8:06 a.m.