The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Rookie trying to get started

SOLVED
Go to solution
Highlighted
Occasional Visitor

Rookie trying to get started

I am new to Web services too.

 

I am trying the very first thing of building the URL and putting it into the browser address. I have tried both of these neither works.

 

https://api.constantcontact.com/ws/customers/JBeidleman/

 

https://api.constantcontact.com/ws/customers/72b41a23-be0b-4e29-bbb0-b590a81decb4%JBeidleman/

 

The first I am stuck in an authentication loop.

The second has my APIKey but it generates popup window stating Windows cannot find... and repeates the URL.

 

I was under the impression I would get something back?

 

Thanks

James@beidleman.com

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Employee

Re: Rookie trying to get started

Hi,

 

You're ultimately going to have to send something in the body of your request to us, along with a header with your authentication credentials, but for simple purposes, when you format the URI for a request you make to us, it should be like this:

 

https://api.constantcontact.com/ws/customers/username/...

 

where ... could equal contacts, lists, etc, based on what you're trying to accomplish.  The username in the URI is simply your username without API Key, but if you try to get to something like this through your browser:

 

https://api.constantcontact.com/ws/customers/username/lists

 

Then the browser can generally prompt you for your credentials, at which point you would enter APIKey%username in the username box, and your password in the password field for your authentication credentials.  

 

I would recommend using one of our wrappers so that the authentication, headers, and other basic code is already handled for you.  We have a PHP and a .NET wrapper located here.

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

2 REPLIES 2
Highlighted
Employee

Re: Rookie trying to get started

Hi,

 

You're ultimately going to have to send something in the body of your request to us, along with a header with your authentication credentials, but for simple purposes, when you format the URI for a request you make to us, it should be like this:

 

https://api.constantcontact.com/ws/customers/username/...

 

where ... could equal contacts, lists, etc, based on what you're trying to accomplish.  The username in the URI is simply your username without API Key, but if you try to get to something like this through your browser:

 

https://api.constantcontact.com/ws/customers/username/lists

 

Then the browser can generally prompt you for your credentials, at which point you would enter APIKey%username in the username box, and your password in the password field for your authentication credentials.  

 

I would recommend using one of our wrappers so that the authentication, headers, and other basic code is already handled for you.  We have a PHP and a .NET wrapper located here.

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

Highlighted
Occasional Visitor

Re: Rookie trying to get started

I was missing this part:

 

Then the browser can generally prompt you for your credentials, at which point you would enter APIKey%username in the username box, and your password in the password field for your authentication credentials.  

 

Thank you! Now I have seen it working...

 

I can move on to doing more.

 

Thank you

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured