Svrf API Docs

Media by ID Endpoint – /vr/:id

Fetch media by its ID.

Parameters

ParameterTypeDescription
idstringID of Media.

Response

Successful Response

Successfully fetched the Media.

KeyTypeDescription
successbooleanIf the request was successful.
mediaobjectSee Media schema.

Error Response

KeyTypeDescription
successbooleanIf the request was successful.
messagestringError 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);
});