API documentation

Stats ยป POST

Update the statistics right now.

Arguments

None.

Request example

Update the stats of the video 550.

cURL

curl -X POST \
-d "api_key=75b5744011e2dddbf2261e157505958b" \ 
--url "http://heyspread.com/api2/video/550/stats"

Ruby

video = HeySpread::Video.find(550)
video.update_statistics

PHP

$video = HeySpread_Video::find(550);
$video->updateStatistics();

Response example

204 No Content

All good, empty response.

400 Bad Request

<errors>
  <error>You don't have enough credit</error>
</errors>