- Create - Create a publishing token for a workspace
- Delete - Delete a specific publishing token
- Get - Get a specific publishing token
- List - Get publishing tokens for a workspace
- ResolveMetadata - Get metadata about the token
- ResolveTarget - Get a specific publishing token target
- Update - Updates the validitity period of a publishing token
Creates a publishing token for the current workspace
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
CreatePublishingTokenRequestBody? req = null;
var res = await sdk.PublishingTokens.CreateAsync(req);
// handle response
CreatePublishingTokenResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Delete a particular publishing token.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
DeletePublishingTokenRequest req = new DeletePublishingTokenRequest() {
TokenID = "<id>",
};
var res = await sdk.PublishingTokens.DeleteAsync(req);
// handle response
DeletePublishingTokenResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Get information about a particular publishing token.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetPublishingTokenByIDRequest req = new GetPublishingTokenByIDRequest() {
TokenID = "<id>",
};
var res = await sdk.PublishingTokens.GetAsync(req);
// handle response
GetPublishingTokenByIDResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Returns a publishing token for the current workspace
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
var res = await sdk.PublishingTokens.ListAsync();
// handle response
GetPublishingTokenResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Get information about a particular publishing token.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetPublishingTokenPublicMetadataRequest req = new GetPublishingTokenPublicMetadataRequest() {
TokenID = "<id>",
};
var res = await sdk.PublishingTokens.ResolveMetadataAsync(req);
// handle response
GetPublishingTokenPublicMetadataResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Get information about a particular publishing token target.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetPublishingTokenTargetByIDRequest req = new GetPublishingTokenTargetByIDRequest() {
TokenID = "<id>",
};
var res = await sdk.PublishingTokens.ResolveTargetAsync(req);
// handle response
GetPublishingTokenTargetByIDResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |
Updates the validity period of a particular publishing token.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
UpdatePublishingTokenExpirationRequest req = new UpdatePublishingTokenExpirationRequest() {
TokenID = "<id>",
};
var res = await sdk.PublishingTokens.UpdateAsync(req);
// handle response
UpdatePublishingTokenExpirationResponse
| Error Type |
Status Code |
Content Type |
| SpeakeasySDK.Models.Errors.Error |
4XX |
application/json |
| SpeakeasySDK.Models.Errors.SDKException |
5XX |
*/* |