public static string[] SupportedLanguages() { if (admToken == null) // We initialize it just one until the timer expires { //Get Client Id and Client Secret from https://datamarket.azure.com/developer/applications/ //Refer obtaining AccessToken (http://msdn.microsoft.com/en-us/library/hh454950.aspx) AuthenticationToken admAuth = new AuthenticationToken(ClientID, ClientSecret); admToken = admAuth.GetAccessToken(); } TranslateService.LanguageServiceClient client = new TranslateService.LanguageServiceClient(); string[] supportedLangs = client.GetLanguagesForTranslate("Bearer" + " " + admToken.access_token); client.Close(); return(supportedLangs); }