Support » Plugin: Public Woo Api » Instructions are not clear

  • I tried to use this plugin but unfortunately I couldn’t figure out how. The instructions say it’s a wrapper… OK… what’s the wrapper name? It then points to the Woommerce API – PHP Client as an example, but that example show you starting a new client by providing authentication credentials… which is what this plugin is suppose to prevent from having to do!

    Please update the instructions to be more clear and include your own examples of usage (not pointing to something else).

Viewing 1 replies (of 1 total)
  • Plugin Author Michael

    (@mickidum)

    It’s all about rest api. Probably you want to get something else?

    How to use
    Go to the WooCommerce/Settings/Advanced/REST API
    Click “Add key”

    Generate your keys with permissions read only (COPY KEYS TO TXT DOCUMENT BECAUSE AFTER LIVING PAGE IT’S NOT POSSIBLE TO VIEW KEYS OR OPEN “Public Woo Options” IN NEW TAB)

    Go to Tools/Public Woo Options
    Insert generated keys to the form (INSERT KEYS FROM TXT DOCUMENT THAT SAVED BEFORE OR COPY FROM “WooCommerce/Settings/Advanced/REST API” PAGE AND PASTE INTO FIELDS HERE

    If you want you can change base Rest Api Endpoint(default is public-woo/v1) THIS FOR CHANGE BASE REST API ENDPOINT(IF YOU WANT YOU CAN CHANGE IT TO “growedup/v2” FOR EXAMPLE

    After save full url will appear above the form (copy this link and insert into “Postman App” url)

    NOW YOUR CAN USE WC REST API. SIMPLE

    How to use WC REST API:
    follow documentation: WooCommerce Rest Api V3

    example: for fetch products:
    http://example.com/wp-json/public-woo/v1/products

    example: for fetch product with id = 153:
    http://example.com/wp-json/public-woo/v1/products/153

    example: for fetch product with slug = “hoodie”
    http://example.com/wp-json/public-woo/v1/products?slug=hoodie

    ALL THIS COVERED IN DOCUMENTATION OF WC REST API.
    Just instead this: https://example.com/wp-json/wc/v3/
    Use this: http://example.com/wp-json/public-woo/v1 (you can change base “public-woo/v1” to another like “myapi/test/yo”)

    http://example.com/wp-json/myapi/test/yo/products

    ALL OTHER PARAMETERS LIKE: per_page, slug, search, etc… TAKE FROM WC DOCUMENTATION.

Viewing 1 replies (of 1 total)
  • The topic ‘Instructions are not clear’ is closed to new replies.