Deprecated
This endpoint is deprecated and no longer available.
One and only option to disable offer, remember that you have to be owner of the offer. Read more about all types of offers here. Remember, offers are not deleted, you can always check disable offer using getRentalOffer method.
Warning
This API is no longer supported for offers with localized versions. If you would like to create or modify an offer with localizations, you can do so directly in the Cleeng dashboard.
Parameters
Name | Type | Description |
---|---|---|
publisherToken* | string | You can find your publisher token at api-keys page. |
offerId* | string | Set identifier of the offer you want to disable. |
-videoId | string | Unique identifier of your video asset. |
API Request/Response
Request
{
"method":"getRentalOffer",
"params":{
"offerId":"R948468705_US"
},
"jsonrpc":"2.0",
"id":1
}
Response
{
"result":{
"id":"A727024001_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":false,
"createdAt":1353067309,
"updatedAt":1353067309,
"price":12,
"tags":[
"sport",
"hockey"
]
},
"id":"1",
"error":null,
"jsonrpc":"2.0"
}
PHP Example
<?php
$offerId = 'R727024001_PL';
$cleengApi = new Cleeng_Api();
$cleengApi->setPublisherToken('Y72a8Cr0KQciwzU7DbOcSXOFL1gT9a6gIYRb6hhOvCdPaxKW');
$cleengApi->deactivateRentalOffer($offerId);
?>