The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Bulk Activity API - search by id error

SOLVED
Go to solution
Highlighted
Occasional Contributor

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

Accepted Solutions
Highlighted
Occasional Contributor

Re: Bulk Activity API - search by id error

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
Highlighted
Moderator

Re: Bulk Activity API - search by id error

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
Highlighted
Occasional Contributor

Re: Bulk Activity API - search by id error

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

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured