woocommerce / wc-api-ruby

A Ruby wrapper for the WooCommerce API.
MIT License
69 stars 74 forks source link

API v1 - Unable to get current store details in Ruby #41

Closed ParthivPatel-BTC closed 6 years ago

ParthivPatel-BTC commented 6 years ago

I am trying to fetch the currenct store details like currency and weight_unit but not getting in response. I am trying with below code. Please help to fetch the current store detail.

default_options = {
    query_string_auth: true,
    wp_api: true,
    version:  'wc/v1'
}
options.merge!(default_options)
WooCommerce::API.new(detail.url,
                     detail.consumer_key,
                     detail.consumer_secret,
                     options
                     )

Thanks.

claudiosanches commented 6 years ago

I tested and works just fine. Does not seems to be any problem.