                // Send the request and get response.
                var response = await client.SendAsync(request);

                // Read response as a string.
                var result = await response.Content.ReadAsStringAsync();
                var translationResults = JsonConvert.DeserializeObject<TranslationResult[]>(result);

                return translationResults.OrderByDescending(x => x.DetectedLanguage.Score).FirstOrDefault();
            }
