Exemple #1
0
        public PayPalHttpClient(PayPalEnvironment environment, string refreshToken) : base(environment)
        {
            this.refreshToken     = refreshToken;
            gzipInjector          = new GzipInjector();
            authorizationInjector = new AuthorizationInjector(this, environment, refreshToken);

            AddInjector(this.gzipInjector);
            AddInjector(this.authorizationInjector);
        }
Exemple #2
0
 public AuthorizationInjector(HttpClient client, PayPalEnvironment environment, string refreshToken)
 {
     this.environment  = environment;
     this.client       = client;
     this.refreshToken = refreshToken;
 }
Exemple #3
0
 public PayPalHttpClient(PayPalEnvironment environment) : this(environment, null)
 {
 }