mikespook / wc-api-golang

A Golang wrapper for the WooCommerce API.
MIT License
7 stars 11 forks source link

Can you show me the way to do POST/PUT ? #2

Closed distravantari closed 7 years ago

distravantari commented 7 years ago
screen shot 2017-05-22 at 10 35 09 am

can you help me with this? it post the product with a default value, it seems I still don't understand how to make a data interface.

thank you.

mikespook commented 7 years ago

You needn't do anything to prod, input it directly into the Post e.g. client.Post("products", prod)

While it's early stage of the library, could have some issues internally. Feel free to open an issue.

distravantari commented 7 years ago

oh I thought I do that in the first place, Thank you so much.