We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

Export Contacts Activity API

Peter
Occasional Participant

Export Contacts Activity API

Hello,


I have Querry about Change api then i need change code.


Previouslly I use "http://api.constantcontact.com/ws/customers/{customer}/activities"


but now "<FileName>http://api.constantcontact.com/ws/customers/{customer}/activities/{activity-id}/{filename}</FileName>" this url.


I need how to get "activity-id and file name"


Thanks,


Peter


 


 


 


 

1 REPLY 1
David_J
Employee

Hi Peter. I would need a little clarification exactly what you are looking for in order to provide some more details. An individual activity entry may be retrieved by issuing an HTTP GET to the entry's URI. The URI for an individual activity may be obtained from the Location header after creating a new entry using the activity collection, or from the link element with rel="edit"  attribute in an existing entry. For some more details on this, I would recommend taking a look at Activities Collection.





Once you have drilled down into the individual activity for exporting your contacts, (ie: https://api.constantcontact.com/ws/customers/{user-name}/activities/{activity-id}), you will be presented with the <id> for that particular activity, as well a a <FileName> node, which will contain a URL for the file that you requested to be exported.


 


If you are using the Activities Collection to create your export, the server will return an HTTP status of 201 Created. The HTTP Location header in the response will contain the URI of the newly created activity, and the entity body returned will be the minimal entry for the activity, including server-generated values like ids and links.



After the system has finished processing the Export activity, retrieving the activity entry will return a complete entry that includes the status of the job. If the job completed successfully, it will also contain a link to the exported file.

David J

Developer Portal

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

Visit Page