getSubscriptionOffer

❗️

Deprecated

JSON-RPC getSubscriptionOffer method is deprecated. Use GET /3.1/offers/{offerId} instead.

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

Parameters

NameTypeDescription
offerId*stringNo description

API Request/Response

Request

{
  "method":"getSubscriptionOffer",
  "params":{
    "offerId":"S580476507_US"
  },
  "jsonrpc":"2.0",
  "id":1
}

Response

{
  "result":{
    "id":"S580476507_US",
    "publisherEmail":"[email protected]",
    "title":"not test anymorre",
    "description":"my first update with Cleeng",
    "url":"http:\/\/test.com\/page_with_content",
    "currency":"EUR",
    "country":"PL",
    "period":"week",
    "active":"1",
    "price":75,
    "createdAt":1353067309,
    "updatedAt":1353067309,
    "accessToTags":[
      "hockey",
      "football"
    ]
  },
  "id":"1",
  "error":null,
  "jsonrpc":"2.0"
}

PHP Example

<?php
    $offerId = 'S123123123_US';

    $cleengApi = new Cleeng_Api();

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

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

?>