Exemplo n.º 1
0
        public void SetupContext()
        {
            var settings = LoadJson();

            Api_Configuration = new Api.Configuration() {
                ServiceURL = settings.ServiceURL,
                UserName = settings.UserName,
                UserApiKey = settings.UserApiKey
            };
        }
Exemplo n.º 2
0
        public void SetupContext()
        {
            var settings = LoadJson();

            Api_Configuration = new Api.Configuration()
            {
                ServiceURL = settings.ServiceURL,
                UserName   = settings.UserName,
                UserApiKey = settings.UserApiKey
            };
        }
Exemplo n.º 3
0
        public BigCommerceService()
        {
            _context = new EisInventoryContext();

            var credential = GetBigCommerceCredential();

            // Apply Configuration once credentials are set
            _apiConfiguration = new BigCommerce4Net.Api.Configuration()
            {
                ServiceURL     = credential.ServiceEndPoint,
                UserName       = credential.Username,
                UserApiKey     = credential.ApiKey,
                MaxPageLimit   = 250,
                AllowDeletions = true // Is false by default, must be true to allow deletions
            };

            _client = new Client(_apiConfiguration);
        }
Exemplo n.º 4
0
 public Client(Configuration configuration)
 {
     _Configuration = configuration;
 }