I have more than 500 contacts in my contact list. I can get 500 contacts at a time with the help of following URL.
But I need all contacts. After researching in constant contact developer guide I found there is an option that I get all contacts(more than 500 contacts in a list). The method that I found is "next_link ".
As per the instruction I gave following URL for getting next contacts after 500 contacts.
But on this step "HttpWebResponse response = request.GetResponse() as HttpWebResponse;" I got following error.
"The remote server returned an error: (400) Bad Request."
Please help me on this.
This is called using pagination and the URL is a bit different than what you have. You should have something more like this.
This will give you a response that includes a URL that will contain the next page of data. You can get the format that needs to be used and an example of the response from this website. (http://developer.constantcontact.com/docs/developer-guides/paginated-output.html)
Is there anyway to get Constant contact token using Requesting URL . Currently I am using Constant contact Authentication window to get token. I attached the screen shot with this mail.
But I need a URL to get authentication token. Please help me on this and let me know how to proceed and how to take Token from it.
Without being able to see the code behind that window I couldn't say for sure what method is being used. However; it does not look like it is using oAuth 2. I am just guessing, but it is probably using a URL to request the Access Token. If you can look at the code you will probably see the information being sent.
I would suggest setting up your application to take advantage of oAuth 2 and you can find that documentation located here. http://developer.constantcontact.com/docs/authentication/authentication.html
If you just need to get an Access Token you can also retrieve that data using our I/O Docs located here. https://constantcontact.mashery.com/io-docs