All URIs are relative to https://api.wordlift.io, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
redeemCode() | POST /redeem-codes | Redeem the provided code and get a key |
redeemCode($request): \Wordlift\Client\Model\Response
Redeem the provided code and get a key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Wordlift\Client\Api\RedeemCodesApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$request = new \Wordlift\Client\Model\Request(); // \Wordlift\Client\Model\Request
try {
$result = $apiInstance->redeemCode($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RedeemCodesApi->redeemCode: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
request | \Wordlift\Client\Model\Request |
\Wordlift\Client\Model\Response
No authorization required
- Content-Type:
application/json
- Accept:
application/json
,application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]