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.

Bulk Activity API - search by id error

SOLVED
Go to solution
TimB6901
Regular Participant

Bulk Activity API - search by id error

Using the bulk Activities API it suggests that that a status of a single activity can be retrieved using 'activity_id' parameter.  However, when adding this to the querystring of the base url I receive an error...

 

[{"error_key":"query.param.invalid","error_message":"The query parameter activity_id is not supported."}]

 

Similar results for (id, activityid)

 

What am I missing?  When querying by status or type all works fine.

 

See doc (http://developer.constantcontact.com/docs/bulk_activities_api/bulk-activities-status-detail-report-a...)

 

Thanks

 

1 ACCEPTED SOLUTION
TimB6901
Regular Participant

Just to clarify for anyone else having trouble with this ... The URI should read ...

 

https://api.constantContact.com/v2/activities/{activity id}/?api_key={api key}

 

The header should continue to contain the normal authorization, accept and content-type parameters

 

Thanks

View solution in original post

2 REPLIES 2
DaveBerard
Moderator

Looks like this is a missing piece of our documentation.  The correct URI to get the details of a specific activity is:

 

https://api.constantcontact.com/v2/activities/{activity_id}

 

We don't supprot query parameters of ID for the collections, only filtering query parameters.  Hope this helps and we'll get on that documnetation oversight ASAP.  Thanks for pointing this out!

Dave Berard
Senior Product Manager, Constant Contact
TimB6901
Regular Participant

Just to clarify for anyone else having trouble with this ... The URI should read ...

 

https://api.constantContact.com/v2/activities/{activity id}/?api_key={api key}

 

The header should continue to contain the normal authorization, accept and content-type parameters

 

Thanks

View solution in original post

Developer Portal

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

Visit Page