Skip to content

Latest commit

 

History

History
66 lines (44 loc) · 2.55 KB

README.md

File metadata and controls

66 lines (44 loc) · 2.55 KB

ManagementV1

(managementV1())

Overview

Available Operations

sendVerificationEmail

SendVerificationEmail

Example Usage

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
        }
    }
}

Parameters

Parameter Type Required Description
request VerificationEmailRequest ✔️ The request object to use for the request.

Response

SendVerificationEmailResponse

Errors

Error Type Status Code Content Type
models/errors/ApiError 401, 429, 500 application/json
models/errors/SDKError 4XX, 5XX */*