Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with woocommerce #33

Open
steffanhalv opened this issue Dec 22, 2016 · 2 comments
Open

Using with woocommerce #33

steffanhalv opened this issue Dec 22, 2016 · 2 comments
Assignees

Comments

@steffanhalv
Copy link

Please see this stackoverflow post.

@bettiolo bettiolo self-assigned this Jan 10, 2017
@DeLonge
Copy link

DeLonge commented Feb 13, 2017

hi, I have some problem.
https://woocommerce.github.io/woocommerce-rest-api-docs/?shell#list-all-products
in woocommerce, there are parameter filter. that executed like this for example:
filter[orderby]=meta_value_num

how can I input that parameter?
var parameter = {
filter[orderby]: 'meta_value_num',
order: 'asc',
oauth_consumer_key: 'ck_key',
oauth_signature_method: 'HMAC-SHA1',
oauth_timestamp: timestamp,
oauth_nonce: nonce,
oauth_version : '1.0'
};
that can't be possible right? So how to do that? Thanks

@bettiolo
Copy link
Owner

@DeLonge This is not a valid syntax:

{
  filter[orderby]: 'meta_value_num',
}

I cannot help you with specific examples for woocommerce.

You need to consider that the parameter object needs to be serialisable to a query string (?foo=bar&baz=qux), so you will need to understand what kind of encoding you need to get woocommerce to handle complex object encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants