1. I see the documentation of how much calls the api allows a day. But I can't see any information about how to retrieve the amount of remaining calls for the given timeframe. It is not returned either in the header values just like in any other apis for example.
2. How to bulk unsubscribe contacts? I saw the example of how to unsubscribe a single contact, unfortunatelly it doesn't fit my needs either because first I need to retrieve all the contact fields so just they won't be overriden by blank values. Is there a way to update a SINGLE field of a contact or multiple contacts at the same time, while keeping all the other fields intact (in this case I just want to set the contact to unsubscribed status)?
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
Our V3 API does not currently have the functionality to pull the remaining requests of the daily request limit that an application has, however, I have opened a feature request with our engineering team for this functionality. Your feedback and experience with this request is essential to improving our product, so thank you for reaching out to us regarding this matter. For the time being, the best workaround for this that I could recommend would be to have your application track the number of requests being made and subtract that number from 10,000 (The daily request limit) to obtain the remaining number of requests that your application has for a given day.
We don’t currently have the functionality to bulk unsubscribe contacts via API. Currently the only way to do this is by uploading a spreadsheet of contacts as unsubscribed through the Contacts page in your account. Below I’m including a support article with information on how to do this.
Import a List of Unsubscribed Contacts From Another Provider:
If you could provide us with some more details about your use case for needing the functionality to bulk unsubscribe contacts via API, we would be happy to look into opening a feature request or we may be able to provide an alternative solution based on what your needs are.
Please have a look and let us know if you have any other questions!
View API documentation, code samples, get your API key.Visit Page
Join our list to be notified of new features and updates to our V3 API.Sign Up