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); }
public ProductBasic[] GetProductList() { com.n11Product.api.Authentication authentication = new com.n11Product.api.Authentication { appKey = apiKey, appSecret = apiSecret }; com.n11Product.api.RequestPagingData requestPagingData = new com.n11Product.api.RequestPagingData(); requestPagingData.currentPage = 0; requestPagingData.pageSize = 10; GetProductListRequest getProductListRequest = new GetProductListRequest(); getProductListRequest.auth = authentication; getProductListRequest.pagingData = requestPagingData; ProductServicePortService port = new ProductServicePortService(); GetProductListResponse getProductListResponse = port.GetProductList(getProductListRequest); ProductBasic[] productBasics = getProductListResponse.products; return(productBasics); }
private static ProductBasic[] getProds() { apiAnahtari1 = "dbd6f8d0-52c1-4675-ab4d-3efc2badb56c"; apiSifresi1 = "iDg6PakWEtkcLrea"; var authentication1 = new n11Api.com.n11.api.Authentication(); authentication1.appKey = apiAnahtari1; //api anahtarınız authentication1.appSecret = apiSifresi1; //api şifeniz GetProductListRequest ProductListRequest = new GetProductListRequest(); ProductListRequest.auth = authentication1; ProductServicePortService port = new ProductServicePortService(); GetProductListResponse response = port.GetProductList(ProductListRequest); var products = response.products; return(products); }