Kruts
3 years agoExperienced User
doco makes reference to OAuthLogin.GetAuthorizationCode...where is this class?
following example here Cloud Service – Support for the MYOB family of SME product APIs
and have installed the SDK but it is not finding OAuthLogin class from line 6 below
what do I need to reference?
var developerKey = "YOUR API KEY"; var developerSecret = "YOUR API SECRET"; var configuration = new ApiConfiguration(developerKey, developerSecret, "http://desktop"); var oauthService = new OAuthService(configuration); var tokens = oauthService.GetTokens(OAuthLogin.GetAuthorizationCode(configuration)); var keystore = new SimpleOAuthKeyService(); keystore.OAuthResponse = tokens; // Get Company Files var cfService = new CompanyFileService(configuration, null, keystore); var companyFiles = cfService.GetRange();
it says : The function OAuthLogin.GetAuthorizationCode is a helper class created in the samples that illustrates how to create a form that launches the secure.myob.com my.MYOB login page.
what samples??