
Last chance! 50% off unlimited learning
Sale ends in
authoriseGitHub
is function that performes OAuth authorisation with GitHub API
and stores resulting token in the github_token
variable.
In order to authorise your app you need ClinetID and ClientSecret.
They can be found here: https://github.com/settings/applications/new
authoriseGitHub(ClientID, ClientSecret, scope = c("public_repo"))
A 20 characters long string with Client ID. See https://github.com/settings/applications/ for more details.
A 40 characters long string with Client Secret. See https://github.com/settings/applications/ for more details.
A character vector with the list of availables scopes for the GitHub API token. See https://developer.github.com/v3/oauth/#scopes.
For repository deletion you will need to add "delete_repo"
scope.
More about archivist.github can be found on marcinkosinski.github.io/archivist.github/ and about archivist in posts' history on https://pbiecek.github.io/archivist/articles/posts.html
Other archivist.github: archive
,
archivist.github-package
,
cloneGitHubRepo
,
createGitHubRepo
,
deleteGitHubRepo
,
pushGitHubRepo
# NOT RUN {
## GitHub version
authoriseGitHub(ClientID, ClientSecret) -> github_token
# }
Run the code above in your browser using DataLab