Rookie trying to get started

SOLVED
Go to solution
JamesB5771
Occasional Participant

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
Shannon_W
Employee

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
Shannon_W
Employee

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

JamesB5771
Occasional Participant

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