-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.448.2
- Loading branch information
1 parent
46fee82
commit ae2a5cc
Showing
16 changed files
with
472 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# CreateEmbedTokenRequestBody | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ------------------ | ------------------ | ------------------ | ------------------ | | ||
| `linkId` | *string* | :heavy_check_mark: | N/A | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CreateEmbedTokenResponse | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | | ||
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | ||
| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | ||
| `rawResponse` | [\Psr\Http\Message\ResponseInterface](https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | ||
| `object` | [?Operations\CreateEmbedTokenResponseBody](../../Models/Operations/CreateEmbedTokenResponseBody.md) | :heavy_minus_sign: | The created public embed token. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# CreateEmbedTokenResponseBody | ||
|
||
The created public embed token. | ||
|
||
|
||
## Fields | ||
|
||
| Field | Type | Required | Description | | ||
| ------------------ | ------------------ | ------------------ | ------------------ | | ||
| `publicToken` | *string* | :heavy_check_mark: | N/A | | ||
| `expires` | *string* | :heavy_check_mark: | N/A | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# EmbedTokens | ||
(*embedTokens*) | ||
|
||
## Overview | ||
|
||
### Available Operations | ||
|
||
* [create](#create) - Create a new embed token | ||
|
||
## create | ||
|
||
Create a new embed token for the referral link. | ||
|
||
### Example Usage | ||
|
||
```php | ||
declare(strict_types=1); | ||
|
||
require 'vendor/autoload.php'; | ||
|
||
use Dub; | ||
use Dub\Models\Operations; | ||
|
||
$security = 'DUB_API_KEY'; | ||
|
||
$sdk = Dub\Dub::builder()->setSecurity($security)->build(); | ||
|
||
$request = new Operations\CreateEmbedTokenRequestBody( | ||
linkId: '<id>', | ||
); | ||
|
||
$response = $sdk->embedTokens->create( | ||
request: $request | ||
); | ||
|
||
if ($response->object !== null) { | ||
// handle response | ||
} | ||
``` | ||
|
||
### Parameters | ||
|
||
| Parameter | Type | Required | Description | | ||
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | ||
| `$request` | [Operations\CreateEmbedTokenRequestBody](../../Models/Operations/CreateEmbedTokenRequestBody.md) | :heavy_check_mark: | The request object to use for the request. | | ||
|
||
### Response | ||
|
||
**[?Operations\CreateEmbedTokenResponse](../../Models/Operations/CreateEmbedTokenResponse.md)** | ||
|
||
### Errors | ||
|
||
| Error Type | Status Code | Content Type | | ||
| -------------------------- | -------------------------- | -------------------------- | | ||
| Errors\BadRequest | 400 | application/json | | ||
| Errors\Unauthorized | 401 | application/json | | ||
| Errors\Forbidden | 403 | application/json | | ||
| Errors\NotFound | 404 | application/json | | ||
| Errors\Conflict | 409 | application/json | | ||
| Errors\InviteExpired | 410 | application/json | | ||
| Errors\UnprocessableEntity | 422 | application/json | | ||
| Errors\RateLimitExceeded | 429 | application/json | | ||
| Errors\InternalServerError | 500 | application/json | | ||
| Errors\SDKException | 4XX, 5XX | \*/\* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.