myTarRefreshToken: Refresh access token

Description Usage Arguments Value Author(s) See Also Examples

View source: R/myTarRefreshToken.R

Description

Refresh old access token

Usage

1
2
myTarRefreshToken(old_auth = NULL, client_id = NULL, 
  client_secret = NULL)

Arguments

old_auth

Your old auth object

client_id

Your client ID

client_secret

Your client secret

Value

R auth object with new acess token

Author(s)

Alexey Seleznev

See Also

https://target.my.com/doc/api/detailed/#resource_oauth2_access_token

Examples

1
2
3
4
5
6
## Not run: 
auth <- myTarRefreshToken(old_auth = myTargetAuth,
                          client_id = "xxxx",
                          client_secret = "xxxx.")

## End(Not run)

rmytarget documentation built on March 13, 2019, 1:08 a.m.