(AppsV2)
Operations that allow you manage your applications.
Create a new application.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39");
CreateAppRequest req = new CreateAppRequest() {
AppConfig = new AppConfig() {
AppName = "minecraft",
AuthConfiguration = new AuthConfiguration() {},
},
};
using(var res = await sdk.AppsV2.CreateAppAsync(req))
{
// handle response
}
Parameter |
Type |
Required |
Description |
request |
CreateAppRequest |
✔️ |
The request object to use for the request. |
CreateAppResponse
Error Type |
Status Code |
Content Type |
HathoraCloud.Models.Errors.ApiError |
401, 404, 422, 429 |
application/json |
HathoraCloud.Models.Errors.ApiError |
500 |
application/json |
HathoraCloud.Models.Errors.SDKException |
4XX, 5XX |
*/* |
Delete an application using appId
. Your organization will lose access to this application.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39");
DeleteAppRequest req = new DeleteAppRequest() {
AppId = "app-af469a92-5b45-4565-b3c4-b79878de67d2",
};
using(var res = await sdk.AppsV2.DeleteAppAsync(req))
{
// handle response
}
Parameter |
Type |
Required |
Description |
request |
DeleteAppRequest |
✔️ |
The request object to use for the request. |
DeleteAppResponse
Error Type |
Status Code |
Content Type |
HathoraCloud.Models.Errors.ApiError |
401, 404, 429 |
application/json |
HathoraCloud.Models.Errors.ApiError |
500 |
application/json |
HathoraCloud.Models.Errors.SDKException |
4XX, 5XX |
*/* |
Get details for an application using appId
.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39");
GetAppRequest req = new GetAppRequest() {
AppId = "app-af469a92-5b45-4565-b3c4-b79878de67d2",
};
using(var res = await sdk.AppsV2.GetAppAsync(req))
{
// handle response
}
Parameter |
Type |
Required |
Description |
request |
GetAppRequest |
✔️ |
The request object to use for the request. |
GetAppResponse
Error Type |
Status Code |
Content Type |
HathoraCloud.Models.Errors.ApiError |
401, 404, 429 |
application/json |
HathoraCloud.Models.Errors.SDKException |
4XX, 5XX |
*/* |
Returns an unsorted list of your organization’s applications. An application is uniquely identified by an appId
.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39");
GetAppsRequest req = new GetAppsRequest() {};
using(var res = await sdk.AppsV2.GetAppsAsync(req))
{
// handle response
}
Parameter |
Type |
Required |
Description |
request |
GetAppsRequest |
✔️ |
The request object to use for the request. |
GetAppsResponse
Error Type |
Status Code |
Content Type |
HathoraCloud.Models.Errors.ApiError |
401, 404, 429 |
application/json |
HathoraCloud.Models.Errors.SDKException |
4XX, 5XX |
*/* |
Update data for an existing application using appId
.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2",
orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39");
UpdateAppRequest req = new UpdateAppRequest() {
AppConfig = new AppConfig() {
AppName = "minecraft",
AuthConfiguration = new AuthConfiguration() {},
},
AppId = "app-af469a92-5b45-4565-b3c4-b79878de67d2",
};
using(var res = await sdk.AppsV2.UpdateAppAsync(req))
{
// handle response
}
Parameter |
Type |
Required |
Description |
request |
UpdateAppRequest |
✔️ |
The request object to use for the request. |
UpdateAppResponse
Error Type |
Status Code |
Content Type |
HathoraCloud.Models.Errors.ApiError |
401, 404, 422, 429 |
application/json |
HathoraCloud.Models.Errors.ApiError |
500 |
application/json |
HathoraCloud.Models.Errors.SDKException |
4XX, 5XX |
*/* |