Skip to content

http request failed using Oauth 1.0 #8

Open

Description

@guilherme-oliveria

I'm having difficulty getting into my products, because the url error http 401, oh consumer_key is correct and the secret is also the only way I can get the data and passing the "cafearabesco.com/wp-json/wc/v2/products?consume_key=ajsajs77kajsak....&consume_secret=njnjnjnjn2n3j23nj2.." but this way it is not safe and on the server in production of the ssl error.

http://uploaddeimagens.com.br/imagens/postman_12-png

http://uploaddeimagens.com.br/imagens/postman-jpg

Activity

  1. guilherme-oliveria commented on Apr 2, 2018

    @guilherme-oliveria
    Author

    copy and paste the link in the browser

  2. omandryk commented on Apr 2, 2018

    @omandryk
    Owner

    Hi @guilherme-oliveria if you have SSL on your server you may use Basic Authentication: http://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https

  3. guilherme-oliveria commented on Apr 2, 2018

    @guilherme-oliveria
    Author

    add params "query_string_auth" = true

  4. guilherme-oliveria commented on Apr 2, 2018

    @guilherme-oliveria
    Author

    in classe enum OauthHeader

  5. guilherme-oliveria commented on Apr 3, 2018

    @guilherme-oliveria
    Author

    I have not been successful since yesterday. my localhost application works but on the server in production because my site in wp and https, and the class DefaulthttpClient uses,
    HttpResponse httpResponse = httpClient.execute(httpRequest);
    and my server from ssl error. " Caused by: javax.net.ssl.SSLPeerUnverifiedException: Host name 'antioquia.com' does not match the certificate subject provided by the peer"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions