ghc_authenticate_gql: Authenticate for GraphQL queries

View source: R/utils.R

ghc_authenticate_gqlR Documentation

Authenticate for GraphQL queries

Description

Helper function to authenticate the GitHub account for running GraphQL (gql) queries. This function is exported for users who want to run custom GraphQL queries against the GitHub server but does not need to be called directly for standard use of the ghctools package. Note that the validity of the authentication token will only be tested once a query (ghc_run_gql) is run.

Usage

ghc_authenticate_gql(token)

Arguments

token

authentication token for github API (https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/)

Value

GraphqlClient object with authentication headers

See Also

Other GitHub query functions: ghc_run_gql()


KopfLab/ghctools documentation built on Feb. 20, 2023, 9:25 a.m.