mikespook / wc-api-golang

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

running on vps #3

Closed distravantari closed 7 years ago

distravantari commented 7 years ago

so your code working perfectly fine on localhost, but when I try to make it online. I got "404 not found" error.

then I try to do it with nodejs, it appear their path are deferent,

screen shot 2017-05-25 at 7 14 56 pm

I try to change the path like this

screen shot 2017-05-25 at 7 14 36 pm

but I still got an error

screen shot 2017-05-25 at 7 19 54 pm

is there anything wrong with my code? or is it a bug?

distravantari commented 7 years ago

Im sorry it's all my fault. we should do it this way

screen shot 2017-05-25 at 10 05 43 pm

don't do it like this client, err := wc.NewClient(store, ck, cs, &wc.Options{ API: true, Version: "wc/v1", })

so I think you should update the documentation.

thank you.