예제 #1
0
        /// <summary>
        /// Manage your Neto store resources.
        /// </summary>
        /// <param name="storeName">The name of the Neto store https://www.*storeName*.com.au</param>
        /// <param name="APIKey">Your Neto API Secure Key (generate this in your Neto control panel).</param>
        /// <param name="username">Your Neto API username (managed under Staff Users in the Neto control panel). Not required if using a key.</param>
        public StoreManager(string storeName, string APIKey, string username, Action <HttpRequestMessage> requestFilter = null, Action <HttpResponseMessage> responseFilter = null)
        {
            this._configuration = new StoreConfiguration(storeName, APIKey, username, _baseEndpoint, requestFilter, responseFilter);

            this.Products   = new ProductResource(this._configuration, null);
            this.Categories = new CategoryResource(this._configuration, null);
            this.Customers  = new CustomerResource(this._configuration, null);
            this.Orders     = new OrderResource(this._configuration, null);
            this.Content    = new ContentResource(this._configuration, null);
            this.RMA        = new RMAResource(this._configuration, null);
            this.Warehouses = new WarehouseResource(this._configuration, null);
            this.Payment    = new PaymentResource(this._configuration, null);
            this.Currency   = new CurrencyResource(this._configuration, null);
            this.Shipping   = new ShippingResource(this._configuration, null);
            this.Suppliers  = new SupplierResource(this._configuration, null);
        }
예제 #2
0
        /// <summary>
        /// Manage your Neto store resources.
        /// </summary>
        /// <param name="storeName">The name of the Neto store https://www.*storeName*.com.au</param>
        /// <param name="APIKey">Your Neto API Secure Key (generate this in your Neto control panel).</param>
        /// <param name="username">Your Neto API username (managed under Staff Users in the Neto control panel). Not required if using a key.</param>
        public StoreManager(string storeName, string APIKey, string username)
        {
            this._configuration = new StoreConfiguration(storeName, APIKey, username, _baseEndpoint);

            this.Products   = new ProductResource(this._configuration, null);
            this.Categories = new CategoryResource(this._configuration, null);
            this.Customers  = new CustomerResource(this._configuration, null);
            this.Orders     = new OrderResource(this._configuration, null);
            this.Content    = new ContentResource(this._configuration, null);
            this.RMA        = new RMAResource(this._configuration, null);
            this.Warehouses = new WarehouseResource(this._configuration, null);
            this.Payment    = new PaymentResource(this._configuration, null);
            this.Currency   = new CurrencyResource(this._configuration, null);
            this.Shipping   = new ShippingResource(this._configuration, null);
            this.Suppliers  = new SupplierResource(this._configuration, null);
        }