Media by ID Endpoint – /vr/:id
Fetch media by its ID.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | ID of Media. |
Response
Successful Response
Successfully fetched the Media.
Key | Type | Description |
---|---|---|
success | boolean | If the request was successful. |
media | object | See Media schema. |
Error Response
Key | Type | Description |
---|---|---|
success | boolean | If the request was successful. |
message | string | Error message. |
Examples
cURL
curl --request GET \--url https://api.svrf.com/v1/vr/INSERT_MEDIA_ID \--header 'accept: application/json' \--header 'x-app-token: YOUR_APP_TOKEN'
Node.js
var request = require("request");var options = {method: 'GET',url: 'https://api.svrf.com/v1/vr/INSERT_MEDIA_ID',headers: {accept: 'application/json', 'x-app-token': 'YOUR_APP_TOKEN'}};request(options, function (error, response, body) {if (error) throw new Error(error);console.log(body);});