API documentation

Video ยป PUT

Enable statistics for the given video.

Arguments

  • stat (Required)

    If "true", enable the statistics for this video

Request example

Enable statistics for the video 555.

cURL

curl -X PUT
-d "stat=true&api_key=75b5744011e2dddbf2261e157505958b" \ 
--url "http://heyspread.com/api2/video/555"

Ruby

video = HeySpread::Video.find(555)
video.enable_statistics

PHP

$video = HeySpread_Video::find(555);
$video->enableStatistics();

Response example

204 No Content

All good, empty response.

400 Bad Request

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