Skip to content

Latest commit

 

History

History
62 lines (41 loc) · 1.66 KB

RedeemCodesApi.md

File metadata and controls

62 lines (41 loc) · 1.66 KB

Wordlift\Client\RedeemCodesApi

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()

redeemCode($request): \Wordlift\Client\Model\Response

Redeem the provided code and get a key

Example

<?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;
}

Parameters

Name Type Description Notes
request \Wordlift\Client\Model\Request

Return type

\Wordlift\Client\Model\Response

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json, application/problem+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]