(managementV1())
- sendVerificationEmail - SendVerificationEmail
SendVerificationEmail
package hello.world;
import dev.hathora.cloud_sdk.HathoraCloud;
import dev.hathora.cloud_sdk.models.errors.ApiError;
import dev.hathora.cloud_sdk.models.operations.SendVerificationEmailResponse;
import dev.hathora.cloud_sdk.models.shared.VerificationEmailRequest;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws ApiError, Exception {
HathoraCloud sdk = HathoraCloud.builder()
.appId("app-af469a92-5b45-4565-b3c4-b79878de67d2")
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")
.build();
VerificationEmailRequest req = VerificationEmailRequest.builder()
.userId("<value>")
.build();
SendVerificationEmailResponse res = sdk.managementV1().sendVerificationEmail()
.request(req)
.call();
if (res.verificationEmailSuccess().isPresent()) {
// handle response
}
}
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
VerificationEmailRequest | ✔️ | The request object to use for the request. |
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiError | 401, 429, 500 | application/json |
models/errors/SDKError | 4XX, 5XX | */* |