WordPress.org

Forums

Woocommerce rest api with local host (2 posts)

  1. tctnpf
    Member
    Posted 1 year ago #

    Hi

    I have installed the wordpress on my local machine and i added the woocommerce plugin on that.i needs to integrate the woocommerce shopping carts to my another application through the REST api.i enable the rest api options on my local host. and added one client library php file on my local host application folder as per the following links

    http://gerhardpotgieter.com/2014/02/10/woocommerce-rest-api-client-library/

    configured my woocommerce credentials(consumer key and secret key) on this page.but unable to access my woocommerce store order details through the rest api.

    i got the following erros

    {"errors":[{"code":"woocommerce_api_authentication_error","message":"oauth_consumer_key parameter is missing"}]}

    my question is can we integrate the local host(FREE) woocommerce application with another application through the REST Api call ?

  2. ClickOn GmbH
    Member
    Posted 1 year ago #

    hello, i'm afraid you not using https, like https://localhost, Woo's API allows HTTP Auth only over HTTPS, if you want to stick with HTTP consider using OAuth.

    I found this quick annoying myself, as i cannot use CRUL to try things out. only after installing SSL cert all is good.

    hope this helps, regards, ClickOn GmbH http://www.clickon.ch - Mobile Apps for E-Commerce.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.