static void Main(string[] args) { var oauthCredentials = new OAuth2Credentials("CLIENT_ID", "CLIENT_SECRET", "REDIRECT", "USER", "PWD"); var auth = new MauticAuthorization(oauthCredentials, new MauticClientConfiguration("URL_MAUTIC")); auth.Authorize().Wait(); }
public void CreateHttpTest() { _mauticClientConfiguration = new MauticClientConfiguration("http://test.com"); _oAuth2Credentials = new OAuth2Credentials("clientId", "clientSecret", "http://callbackUri.com", "userName", "password"); _sut = new MauticAuthorization(_oAuth2Credentials, _mauticClientConfiguration); }