Topic Endpoint

The APIs around Topic are for seeding our data collection with specific topics.

The deployment end-point for our APIs is: http://api.spotright.com

The Topic APIs all use a path of the form: VERSION/TOKEN/topic/…

Where VERSION is currently “v1″. I.e., version 1 of the API.

Submit

To submit topics for data collection make the following call


PUT http://api.spotright.com/*VERSION*/*TOKEN*/topic/submit Content-Type: application/json

The body of your PUT should be:


{ "topics": Array[String] }

…where each String in the array is a topic you wish to submit.

Examples


$ curl -H "Content-Type: application/json" http://api.spotright.com/v1/*TOKEN*/topic/submit {"envelope_ver":"1.0","status":"2.5.4","msg":"success (no content)"}