getAccessToken: Getting Access Token of COTOHA API

Description Usage Arguments Value See Also

View source: R/cotoha.R

Description

Getting Access Token of COTOHA API

Usage

1
2
3
4
5
6
getAccessToken(
  publish_url,
  client_id = Sys.getenv("COTOHA_ID"),
  client_secret = Sys.getenv("COTOHA_SECRET"),
  grant_type = "client_credentials"
)

Arguments

publish_url

string.

client_id

string.

client_secret

string.

grant_type

string.

Value

return access token only when the authorization succeeded. If failed, then return the httr response invisibly.

See Also

https://api.ce-cotoha.com/contents/reference/accesstoken.html


paithiov909/conifer documentation built on Nov. 17, 2021, 11:01 a.m.