Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

api cs v4 Rate Topic   - - - - -

 
  • vanderex
  • Senior Member
  • Members
  • Join Date: 27-May 10
  • 386 posts

Posted 02 May 2013 - 07:08 PM #1

made a small php script to test api...

make_cat("test");
make_prod("tester");
  
function make_cat($name) {
...
}
makes a cat/..

function make_prod($name) {
...
}

makes a prod

category works...
product creates one.. result =
)
{"product_id":3}

etc.
but i can't see in GUI...
seems it's not adding to `cscart_products_categories`

so i SQL'ed
INSERT INTO `csbeta`.`cscart_products_categories` (`product_id`, `category_id`, `link_type`, `position`) VALUES ('3', '3', 'M', '0'), ('3', '4', 'M', '0');

and all good...

beta or alpha ?
Get Cost Effective Content Delivery CDN
Unbeatable speed, stats, & price
MaxCDN Site Acceleration

 
  • vanderex
  • Senior Member
  • Members
  • Join Date: 27-May 10
  • 386 posts

Posted 02 May 2013 - 07:33 PM #2

also in your api docs you say

Has maximal nesting depth of 2 (e.g. products/features, products/options, products/features/images)

depth of 2 , yet you show products/features/images which is 3
Get Cost Effective Content Delivery CDN
Unbeatable speed, stats, & price
MaxCDN Site Acceleration

 
  • vmalyshev
  • CS-Cart Architect
  • CS-Cart Architects
  • Join Date: 29-Nov 12
  • 103 posts

Posted 07 May 2013 - 12:30 PM #3

Thank you for your message. We will update API-documentation.

 
  • luca404
  • Newbie
  • Trial users
  • Join Date: 19-Jun 13
  • 1 posts

Posted 19 June 2013 - 11:41 PM #4

Trying out the API, I would need it to manage products and their variants.

I defined a product with variants in CS Cart, I can see the product data returned from api/products/<id> but there are no <variant_id> or <variants> fields in the returned JSON like the ones described in API documentation.

I am using 4.0.1beta2, is this something that has been added in a later beta? Are variants actually supported and working in the API?