Last chance! 50% off unlimited learning
Sale ends in
Authentication in 'MyTarget API' by Code Grant Schema or other auth schems. For detail you can see documentation.
myTarAuth(
login = getOption("rmytarget.login"),
grant_type = "client_credentials",
client_id = getOption("rmytarget.client_id"),
client_secret = getOption("rmytarget.client_secret"),
agency_client_name = NULL,
code_grant = getOption("rmytarget.code_grant_auth"),
token_path = myTarTokenPath()
)
Account name, used in file name if you save credential
Your account grant, get one of two values, "client_credentials" or "agency_client_credentials". Not use in Code Grant Schema.
Yoyr client ID. Not use in Code Grant Schema.
Your client secret. Not use in Code Grant Schema.
Your client user name. Only for "agency_client_credentials" grant_type.
logical, Use code gran authorise schema, detail
Path to directory where you save credential data.
No return value, called for side effects
API authorization documentation by 'MyTarget'.
# NOT RUN {
# Recomendation auth by code grant schema
myTarAuth(login = "my_account_name")
# }
Run the code above in your browser using DataLab