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