PHP code example of sportakal / revenuecat-v1-api-php
1. Go to this page and download the library: Download sportakal/revenuecat-v1-api-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sportakal / revenuecat-v1-api-php example snippets
use Sportakal\RevenuecatV1ApiPhp\Options;
$options = new Options('your_bearer_token','your timezone (+3));
use Sportakal\RevenuecatV1ApiPhp\Requests\GetOrCreateSubscriber;
$request = (new GetOrCreateSubscriber('app_user_id'));
$subscriber = $request->get($options);
return $subscriber;