• Resolved chrisabo

    (@chrisabo)


    Hi,
    I try to use the brands via the API, but I’m getting the message that the endpoint doesn’t exist.
    https://woocommerce.abowebhosting.be/wc-api/v3/brands?consumer_key=xx&consumer_secret=yy
    I also tried with the endpoint …/v3/products/brands?….

    If I ask a list of products, the brand is also not added to the product data.

    Is the above possible?

    Array
    (
        [home_url] => https://woocommerce.abowebhosting.be
        [site_url] => https://woocommerce.abowebhosting.be
        [version] => 3.2.6
        [wp_version] => 4.9.4
        [wp_multisite] => 
        [wp_memory_limit] => 40M
        [wp_debug_mode] => 
        [wp_cron] => 1
        [language] => nl_BE
        [server_info] => Apache
        [php_version] => 5.6.26
        [php_post_max_size] => 25M
        [php_max_execution_time] => 30
        [php_max_input_vars] => 1000
        [max_upload_size] => 26214400
        [default_timezone] => UTC
        [theme] => Array
            (
                [name] => Twenty Seventeen
                [version] => 1.4
                [parent_theme] => 
            )
    
        [active_plugins] => Array
            (
                [0] => perfect-woocommerce-brands/main.php
                [1] => product-import-export-for-woo/product-csv-import-export.php
                [3] => woocommerce-products-filter/index.php
                [4] => woocommerce/woocommerce.php
            )
    
        [pwb_options] => Array
            (
                [version] => 1.6.4
                [wc_pwb_admin_tab_brand_single_position] => after_meta
                [old_wc_pwb_admin_tab_slug] => brand
                [wc_pwb_notice_plugin_review] => 
                [wc_pwb_admin_tab_slug] => 
                [wc_pwb_admin_tab_brand_desc] => yes
                [wc_pwb_admin_tab_brand_single_product_tab] => no
                [wc_pwb_admin_tab_brands_in_loop] => brand_link
                [wc_pwb_admin_tab_brands_in_single] => brand_image
                [wc_pwb_admin_tab_brand_logo_size] => thumbnail
            )
    
    )
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chrisabo

    (@chrisabo)

    Hi,
    I found why it wasn’t working. I used the wrong API…
    This is the correct one: …/wp-json/wc/v2/brands.

    The brand is also included in the products API. Everything works perfect.

    @chrisabo did you, by any chance, create a script to generate a feed with all the products and their respective brands?
    I have to generate a Google Shopping XML in order to import all the products automatically.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Brands in API’ is closed to new replies.