public static void SetCredentials(EEnvironment environment, string accessToken, int defaultAccount = 0)
		{
			_instance = new Credentials
				{
					Environment = environment,
					AccessToken = accessToken,
					DefaultAccountId = defaultAccount
				};
		}
Beispiel #2
0
 public static Credentials GetDefaultCredentials()
 {
     if (_instance == null)
     {
         _instance = GetPracticeCredentials();
         //_instance = GetSandboxCredentials();
         //_instance = GetLiveCredentials();
     }
     return _instance;
 }
Beispiel #3
0
 // Convenience helpers
 private static string Server(EServer server)
 {
     return(Credentials.GetDefaultCredentials().GetServer(server));
 }