API Connection in R
Hello,
Â
I am currently having difficulties in connecting to ConstantContact through API in R. Here is the code that I am currently running:
Â
cc_app <- oauth_app("constant_contact",
key = "[redacted],
secret = "[redacted]",
redirect_uri = "https://localhost")
Â
CCtoken <- oauth2.0_token(endpoint = oauth_endpoint(authorize = "https://authz.constantcontact.com/oauth2/default/v1/authorize", access = "https://authz.constantcontact.com/oauth2/default/v1/token"), app = cc_app)
Â
When I run it, I am greeted with a 400 error:Â Your request resulted in an error. The 'redirect_uri' parameter must be a Login redirect URI in the client app settings: https://prod-ctct-admin.okta.com/admin/app/oidc_client/instance/0oa1sanwcai0kKgL30h8#tab-general.
Â
Do I need a different redirect uri? Or is there an error within my code? My end goal is to pull campaign information and total contacts.