Skip to content

Commit

Permalink
feat(Language Translator): Add constructor for external auth config a…
Browse files Browse the repository at this point in the history
…nd fix serialization bug
  • Loading branch information
lpatino10 committed Oct 2, 2019
1 parent e3c8231 commit b0295b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions force-app/main/default/classes/IBMLanguageTranslatorV3.cls
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ public class IBMLanguageTranslatorV3 extends IBMWatsonService {

private String versionDate;

/**
* Instantiates a new `IBMLanguageTranslatorV3`.
*
* @param versionDate The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
* calls from failing when the service introduces breaking changes.
*/
public IBMLanguageTranslatorV3(String versionDate) {
this(versionDate, IBMWatsonConfigBasedAuthenticatorFactory.getAuthenticator(SERVICE_NAME));
}

/**
* Instantiates a new `IBMLanguageTranslatorV3`.
*
Expand Down

0 comments on commit b0295b7

Please sign in to comment.