-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate.github.context.Rd
More file actions
42 lines (35 loc) · 1.36 KB
/
create.github.context.Rd
File metadata and controls
42 lines (35 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/github.R
\name{create.github.context}
\alias{create.github.context}
\title{Create a github context object.}
\usage{
create.github.context(api_url = "https://api.github.com", client_id = NULL,
client_secret = NULL, access_token = NULL, personal_token = NULL,
max_etags = 10000, verbose = FALSE)
}
\arguments{
\item{api_url}{the base URL}
\item{client_id}{the github client ID}
\item{client_secret}{the github client secret}
\item{access_token}{the github access token}
\item{personal_token}{the personal access token given by github via the /authorizations api}
\item{max_etags}{the maximum number of entries to cache in the context}
\item{verbose}{if TRUE, passes verbose() to httr configuration}
}
\value{
a github context object that is used in every github API call
issued by this library.
}
\description{
If create.github.context is called without some of client_id, client_secret
or access_token, then some API calls will be unavailable, and more severe
rate limiting will be in effect. Refer to http://developer.github.com for
more details.
}
\details{
create.github.context stores the context last created in an environment.
If any of the github API functions are called without a context, this
context is used instead. (if no context has been created, an unauthenticated
context will be created)
}