Is there an REST endpoint that can provide the admin email on the WooCommerce installation. I have gone through the documentation for the REST API here https://woocommerce.github.io/woocommerce-rest-api-docs and I can't seem to figure this out.
GET /wp-json/wc/v3/customers/1 seems to work for me.
Related
I'm working on a code to programmatically change paypal account based on cart, I've just one problem, I want to know if sandbox is active on Paypal Standard Gateway to serve sandbox account, or if I'm on live mode to serve live account. Someone knows how to get the sandbox status?
Tnx
Sorry, stupid question, I've looked for an hour but at the end I realize that the simple way is a standard wordpress get_option api:
get_option("woocommerce_paypal_settings")
Thanks
I am trying to access my site's Subscription Products via REST API. At wc/v1/subscriptions I can get the active subscriptions, and at wc/v3/products I can get all products except subscriptions.
There isn't anything in the WC Subscriptions documentation about subscription products. This site implies that I can provide an API for this, but I am not a PHP programmer. I do have access to the server and can put code in functions.php or wherever it would belong.
Can anyone provide me with the code to achieve this? I ask here because I hope it's relatively simple, like the get_posts_meta code I've found on a number of blogs/sources to expose some other API data.
Thanks a lot.
I have an account mailchimp where i have a list of subscribers.
I'm starting a plugin wordpress where i use the mandrill api.
I'm trying to get my the lists of mailchimp, and i'm trying to see how i can send with mandrill api an email (newsletter type) to the list mailchimp.
The thing is i can't find any code in the mandrill api for finding the lists or sending to a list.
I have installed the mailchimp plugin in wp to see what i can do with. and in it there is the mailchimp api that can get the lists.
But still with mandrill i can't find a way to send to a list.
In the documentation of mandrill is empty for me
https://mandrill.zendesk.com/hc/en-us/categories/200277227-API-Integration
as anyone an idea for me?
Thanks
I'm using the woocommerce API for the first time and need some help with it.
I thought I'll start easy and use it to just get the site title returned.
I read the documentation at https://woothemes.github.io/woocommerce-rest-api-docs/?php#view-index-list but its too complex and doesn't provide details about the first steps I need to do to connect to the API.
I have enabled the REST API on my woocommerce powered site.
My questions are,
How do I connect to this API ? The documentation tell me to run
<?php print_r($woocommerce->get('')); ?> but where am I supposed
to run it ?
How do I authenticate myself with the keys that are
generated by the API ?
I appreciate any help, thanks.
This link should be able to help youL https://www.skyverge.com/blog/using-woocommerce-rest-api-introduction/
What you need to understand is that the keys are your authentication. Kind of like an entry password to your site's API. Then you need to acknowledge the key within the code for your api request followed by your API requirements. Hope this helps.
I found {"errors":[{"code":"woocommerce_api_authentication_error","message":"oauth_consumer_key parameter is missing"}]} , when i want to access products from REST API in WooCommerce.
I am using this url http://domainname/wc-api/v2/products.
Please help me.