(organizationsV1())
AcceptInvite
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.AcceptInviteResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
AcceptInviteResponse res = sdk.organizationsV1().acceptInvite()
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();
// handle response
}
}
Parameter |
Type |
Required |
Description |
Example |
orgId |
String |
✔️ |
N/A |
org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
AcceptInviteResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 404, 429 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
GetOrgMembers
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.GetOrgMembersResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
GetOrgMembersResponse res = sdk.organizationsV1().getOrgMembers()
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();
if (res.orgMembersPage().isPresent()) {
// handle response
}
}
}
Parameter |
Type |
Required |
Description |
Example |
orgId |
String |
✔️ |
N/A |
org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
GetOrgMembersResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 429 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
GetOrgPendingInvites
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.GetOrgPendingInvitesResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
GetOrgPendingInvitesResponse res = sdk.organizationsV1().getOrgPendingInvites()
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();
if (res.pendingOrgInvitesPage().isPresent()) {
// handle response
}
}
}
Parameter |
Type |
Required |
Description |
Example |
orgId |
String |
✔️ |
N/A |
org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
GetOrgPendingInvitesResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 429 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
Returns an unsorted list of all organizations that you are a member of (an accepted membership invite). An organization is uniquely identified by an orgId
.
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.GetOrgsResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
GetOrgsResponse res = sdk.organizationsV1().getOrgs()
.call();
if (res.orgsPage().isPresent()) {
// handle response
}
}
}
GetOrgsResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 404, 429 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
GetUsageLimits
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.GetUsageLimitsResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
GetUsageLimitsResponse res = sdk.organizationsV1().getUsageLimits()
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();
if (res.usageLimits().isPresent()) {
// handle response
}
}
}
Parameter |
Type |
Required |
Description |
Example |
orgId |
Optional<String> |
➖ |
N/A |
org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
GetUsageLimitsResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 404, 429, 500 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
GetUserPendingInvites
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.GetUserPendingInvitesResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
GetUserPendingInvitesResponse res = sdk.organizationsV1().getUserPendingInvites()
.call();
if (res.pendingOrgInvitesPage().isPresent()) {
// handle response
}
}
}
GetUserPendingInvitesResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 429 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
InviteUser
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.InviteUserResponse;
import dev.hathora.cloud_sdk.models.shared.CreateUserInvite;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
InviteUserResponse res = sdk.organizationsV1().inviteUser()
.createUserInvite(CreateUserInvite.builder()
.userEmail("[email protected]")
.build())
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();
if (res.pendingOrgInvite().isPresent()) {
// handle response
}
}
}
Parameter |
Type |
Required |
Description |
Example |
createUserInvite |
CreateUserInvite |
✔️ |
N/A |
|
orgId |
String |
✔️ |
N/A |
org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
InviteUserResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 422, 429 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
RejectInvite
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.RejectInviteResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
RejectInviteResponse res = sdk.organizationsV1().rejectInvite()
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();
// handle response
}
}
Parameter |
Type |
Required |
Description |
Example |
orgId |
String |
✔️ |
N/A |
org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
RejectInviteResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 404, 429 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
RescindInvite
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.RescindInviteResponse;
import dev.hathora.cloud_sdk.models.shared.RescindUserInvite;
import dev.hathora.cloud_sdk.models.shared.Security;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
RescindInviteResponse res = sdk.organizationsV1().rescindInvite()
.rescindUserInvite(RescindUserInvite.builder()
.userEmail("[email protected]")
.build())
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();
// handle response
}
}
Parameter |
Type |
Required |
Description |
Example |
rescindUserInvite |
RescindUserInvite |
✔️ |
N/A |
|
orgId |
String |
✔️ |
N/A |
org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
RescindInviteResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 404, 422, 429, 500 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |
UpdateUserInvite
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.UpdateUserInviteResponse;
import dev.hathora.cloud_sdk.models.shared.Security;
import dev.hathora.cloud_sdk.models.shared.UpdateUserInvite;
import dev.hathora.cloud_sdk.models.shared.UpdateUserInviteScopes;
import dev.hathora.cloud_sdk.models.shared.UserRole;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.security(Security.builder()
.hathoraDevToken("<YOUR_BEARER_TOKEN_HERE>")
.build())
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
UpdateUserInviteResponse res = sdk.organizationsV1().updateUserInvite()
.updateUserInvite(UpdateUserInvite.builder()
.scopes(UpdateUserInviteScopes.of(UserRole.VIEWER))
.userEmail("[email protected]")
.build())
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.call();
if (res.boolean_().isPresent()) {
// handle response
}
}
}
Parameter |
Type |
Required |
Description |
Example |
updateUserInvite |
UpdateUserInvite |
✔️ |
N/A |
|
orgId |
String |
✔️ |
N/A |
org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 |
UpdateUserInviteResponse
Error Type |
Status Code |
Content Type |
models/errors/ApiError |
401, 422, 429 |
application/json |
models/errors/SDKError |
4XX, 5XX |
*/* |