Example #1
0
        private static Product product(long prodId)
        {
            var authentication1 = new com.n11.api.Authentication();

            authentication1.appKey    = apiAnahtari1; //api anahtarınız
            authentication1.appSecret = apiSifresi1;  //api şifeniz

            ProductServicePortService    proxy   = new ProductServicePortService();
            GetProductByProductIdRequest request = new GetProductByProductIdRequest();

            request.auth      = authentication1;
            request.productId = prodId;

            GetProductByProductIdResponse response = new GetProductByProductIdResponse();
            var product = proxy.GetProductByProductId(request).product;

            return(product);
        }
Example #2
0
        private static Product getProdDetails(long prodId)
        {
            var authentication1 = new com.n11.api.Authentication();

            authentication1.appKey    = apiAnahtari1; //api anahtarınız
            authentication1.appSecret = apiSifresi1;  //api şifeniz


            com.n11.api.GetProductByProductIdRequest ProductRequest = new com.n11.api.GetProductByProductIdRequest();
            ProductRequest.auth = authentication1;

            com.n11.api.ProductServicePortService port = new ProductServicePortService();

            ProductRequest.productId = prodId;

            com.n11.api.GetProductByProductIdResponse response = port.GetProductByProductId(ProductRequest);
            var product = response.product;

            return(product);
        }