Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. // GET the list of products from this product catalogue
  2. String catalogueId = "catalogueId"; // Your product catalogue Id
  3. Filter filter = new Filter();// filter options (name, externalId, barcode value, product category name, barcode type, currency, amount range, page, size and sorting)
  4.  
  5. accept.inventory().getProducts(catalogue.getId(), new Filter())
  6. .subscribe(products -> {
  7. // list of category products
  8. }
  9. }, throwable -> {
  10. handle error
  11. });
  12.  
  13. // GET product from with given product ID inside catalogue with given catalogue ID
  14. accept.inventory().getProduct("catalogueId", "productId")
  15. .subscribe(product -> {
  16. // product object
  17. }, throwable -> {
  18. // handle error
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement