Access token is invalid

SOLVED
Highlighted
Member

Access token is invalid

I finished with registering my app, and getting api key and client secret. I downloaded example from git hub for .net, and I built a small web application in asp.net mvc4, that is using CTCT_wrapper project from the sample.
https://github.com/constantcontact/.net-sdk
I am calling 'AuthorizeFromWebApplication' method that redirects to constanct contact login page. After I enter credtials, and grant access, on my redirection URL i get the access token. This works fine, but if I try to invoke any method, it throws an exception that my access token is invalid.
Why this happens ??
Also, if I generate access token on this link
https://constantcontact.mashery.com/io-docs for the same api key, and same credentials i get different access token, and I can invoke any method with that access token..
Please could you help me to figure out what am I doing wrong ?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Member

Re: Access token is invalid

I figured it out that I got the authorization code, and after that I called method 'GetAccessTokenByCode' using the authorization code that I recieved.

View solution in original post

1 REPLY 1
Highlighted
Member

Re: Access token is invalid

I figured it out that I got the authorization code, and after that I called method 'GetAccessTokenByCode' using the authorization code that I recieved.

View solution in original post

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured