Accessing Azure Translation API using Single Token – Sample Java Snippet

Accessing API using ClientSecret and ClientID will be decommissioned after April 30,2017.

Previously

//Setting ClientID and ClientSecret obtained from Azure Portal
Translate.setClientId(CLIENT_ID);
Translate.setClientSecret(CLIENT_SECRET);
//Azure API Call
translatedText = Translate.execute(textToTranslate, Language.AUTO_DETECT,Language.ENGLISH);

Continue reading “Accessing Azure Translation API using Single Token – Sample Java Snippet”

Create a website or blog at WordPress.com

Up ↑