Skip to content
pignolr edited this page Mar 27, 2020 · 2 revisions

The data endpoint allow analysing a batch of data (image or text). It must be contacted with POST requests.

It must be contacted with the following arguments:

  • token: Authentification token
  • userId: ID of the user that is reported
  • service: Service that is reported
  • dataBatches: Array of batch of data to be analysed

"dataBatches" is an array of batch of data with the following format:

  • urlSrc: Batch source url
  • texts: Array of texts to be analysed
  • images: Array of images to be analysed

Each data (text and image) is with the following format:

  • content: Data content to be analyzed
  • nb: Number of data recurrences

Example of request:

key value
userId userExample
token tokenExample
service serviceExample
dataBatches[0][urlSrc] http://example.com/
dataBatches[0][texts][0] textToBeAnalysed
dataBatches[0][texts][1] text2ToBeAnalysed
dataBatches[0][images][0] https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png
dataBatches[1][urlSrc] https://www.google.com/
dataBatches[1][texts][0] text3ToBeAnalysed
dataBatches[1][texts][1] text4ToBeAnalysed

Clone this wiki locally