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.
Popular Posts:
Small Business Holiday Outlook 2025: Make-or-Break Season! 🚨
💬 What’s Your Secret Sauce for Subject Line Success?
New Update: Edit Custom Fields Directly in Your Sign-Up Form! 🎉