private static ProductBasic[] getProds() { setProxy(); var authentication1 = new com.n11.api.Authentication(); authentication1.appKey = apiAnahtari1; //api anahtarınız authentication1.appSecret = apiSifresi1;//api şifeniz com.n11.api.GetProductListRequest ProductListRequest = new com.n11.api.GetProductListRequest(); ProductListRequest.auth = authentication1; com.n11.api.ProductServicePortService port = new ProductServicePortService(); com.n11.api.GetProductListResponse response = port.GetProductList(ProductListRequest); var products = response.products; return products; }
/// <remarks/> public void GetProductListAsync(GetProductListRequest GetProductListRequest, object userState) { if ((this.GetProductListOperationCompleted == null)) { this.GetProductListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetProductListOperationCompleted); } this.InvokeAsync("GetProductList", new object[] { GetProductListRequest}, this.GetProductListOperationCompleted, userState); }
/// <remarks/> public void GetProductListAsync(GetProductListRequest GetProductListRequest) { this.GetProductListAsync(GetProductListRequest, null); }