getRentalOffer

❗️

Deprecated

JSON-RPC getRentalOffer method is deprecated.

Get information about rental offer. Read more about all types of offers here.

Parameters

NameTypeDescription
offerId*stringSet id of an offer you want to get info about.
videoIdstringUnique identifier of your video asset.

API Request/Response

Request

{
  "method":"getRentalOffer",
  "params":{
    "offerId":"R948468705_US"
  },
  "jsonrpc":"2.0",
  "id":1
}

Response

{
	"result": {
		"id": "R948468705_US",
		"publisherEmail": "[email protected]",
		"url": "http:\/\/test.com\/page_with_content",
		"title": "test",
		"description": "my first offer with Cleeng",
		"currency": "EUR",
		"videoId": "",
		"contentExternalId": "",
		"contentExternalData": "",
		"averageRating": 4,
		"active": true,
		"createdAt": 1353067309,
		"updatedAt": 1353067309,
		"price": 12,
		"tags": ["sport", "hockey"],
		"period": "120"
	},
	"id": "1",
	"error": null,
	"jsonrpc": "2.0"
}

PHP Example

<?php
    $offerId = 'R582647327_NL';

    $cleengApi = new Cleeng_Api();

    $offerDetails = $cleengApi->getRentalOffer($offerId);

    echo $offerDetails->title; //print the offer title

?>