Skip to content

Latest commit

 

History

History
70 lines (45 loc) · 2.11 KB

File metadata and controls

70 lines (45 loc) · 2.11 KB

Zernio\InvitesApi

All URIs are relative to https://zernio.com/api, except if the operation defines another base path.

Method HTTP request Description
createInviteToken() POST /v1/invite/tokens Create invite token

createInviteToken()

createInviteToken($create_invite_token_request): \Zernio\Model\CreateInviteToken201Response

Create invite token

Generate a secure invite link to grant team members access to your profiles. Invites expire after 7 days and are single-use.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer (JWT) authorization: bearerAuth
$config = Zernio\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Zernio\Api\InvitesApi(
    // 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(),
    $config
);
$create_invite_token_request = {"scope":"profiles","profileIds":["64f0a1b2c3d4e5f6a7b8c9d0","64f0a1b2c3d4e5f6a7b8c9d1"]}; // \Zernio\Model\CreateInviteTokenRequest

try {
    $result = $apiInstance->createInviteToken($create_invite_token_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InvitesApi->createInviteToken: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
create_invite_token_request \Zernio\Model\CreateInviteTokenRequest

Return type

\Zernio\Model\CreateInviteToken201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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