- The api has 2 endpoints
- GET /campaign/:id/all_content_metadata
- For a given campaign id, return all of the associated campaign metadata. Will return a JSON list of objects.
- Example response:
[ { "id": "14d494ff-f045-5b45-a4a3-853fae9bb1f8" }, { "id": "b518b738-42e6-5e96-b6a2-a8d8c0abc8a0" }, ... ]
- GET /content_metadata/:id/performance
- For a given content_metadata id, return the associated performance data. Will return a JSON object.
- Response will always have the following shape:
{ "id": <string>, "performance": { "comments": <integer>, "likes": <integer> }, "snapshot": { "followers": <integer> } }
- Example response:
{ "id": "14d494ff-f045-5b45-a4a3-853fae9bb1f8", "performance": { "comments": 17, "likes": 95 }, "snapshot": { "followers": 3846 } }
-
Notifications
You must be signed in to change notification settings - Fork 1
sam-perez/sn-shorter-coding-challenge
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A short coding challenge for SN
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published