/// <summary>Snippet for GetKeyAsync</summary> public async Task GetKeyRequestObjectAsync() { // Snippet: GetKeyAsync(GetKeyRequest, CallSettings) // Additional: GetKeyAsync(GetKeyRequest, CancellationToken) // Create client RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = await RecaptchaEnterpriseServiceV1Beta1Client.CreateAsync(); // Initialize request argument(s) GetKeyRequest request = new GetKeyRequest { KeyName = KeyName.FromProjectKey("[PROJECT]", "[KEY]"), }; // Make the request Key response = await recaptchaEnterpriseServiceV1Beta1Client.GetKeyAsync(request); // End snippet }