• Resolved shopvoid

    (@shopvoid)


    Hi
    I am trying to import and export (push, put, json) via the WooCommerce API; I can get the Brand ID and name pulled from Website, but cannot push it back to the website.

    Does the plugin support the API, and if so what are the correct json codes please?
    thx
    Neil

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor titodevera

    (@titodevera)

    Hi shopvoid!

    The new version (1.5.2) adds new features for working with the WooCommerce REST API. Please, update PWB and check this example:

    $data = [
    'brands' => ['1','2']
    ];
    $results = $woocommerce->put('products/53', $data);
    

    Thanks!

    Hello,titodevera. Thanks for your plugin:)
    i have a question about API supprot. How can i add list of brands?
    i’am trying smt like this
    $woocommerce->put(‘products/brands’, $data);
    or
    $woocommerce->put(‘brands’, $data);
    or
    $woocommerce->post(‘brands’, $data);
    but it’s not working ??

    • This reply was modified 7 years, 5 months ago by gremlindeg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘API support’ is closed to new replies.