Getting Access Token of COTOHA API

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