The most important thing that we are going to share with you guys today, that is how to verify woocommerce in the android app. Let’s check out the steps for Woocommerce authentication in the Android app.
? For GET method:
? For POST method:
final Object being the JSONOBJECT with all required parameter values to post to API.
http://your_wordpress_site/wordpress/wp-json/wc/v2/products/?category=26,27,28
Product response will have categories array:
[php]
“categories”: [
{
“id”: 26,
“name”: “Subcategory”,
“slug”: “subcategory”
}
],
[/php]
While displaying subcategory with its products, filter this list based on current subcategory we are displaying.
Hi avyatech.com
This is Very Good Article Keep Doing Woorking
Thank you so much, Rahul.
Hi,
Thanks for sharing such type of post.
Your most welcome Amit, Keep subscribe us to get the latest info.
Thanks for a great article
“I have just visited your website, and I think it’s great.”
Thank you for visiting our site.
Fantastic Blog! I agree completely with you here. It is a very valuable and helpful collection of blogs. I am trying to gain information from all these. Really helpful post. Thank you..!!
Thank you so much, Rahul, to visit my blog and share your valuable feedback.
thank you for sharing this information
this post is really helpfull for us n thanks for this post.
Hi,
very good information. Thanks for sharing,
Nice Blog
Hey What is in the RequestToken.class. I cant understand. Can you help me with the full source code? Thanks a lot.
Hi
I really glad to give an answer to your query, Please find the code details and mail me if you need more help with it. RequestToken class is used for oAuth purpose to get the Access token and verify the user. package com.avyatech.woocommerceapp;
import org.scribe.builder.api.DefaultApi10a;
import org.scribe.model.Verb;
import org.scribe.model.Token;
/**
* Created by avyatech3 on 5/31/2017.
*/
public class RequestToken extends DefaultApi10a{
@Override
public String getAccessTokenEndpoint() {
return null;
}
@Override
public String getRequestTokenEndpoint() {
return null;
}
@Override
public String getAuthorizationUrl(Token requestToken) {
return null;
}
@Override
public Verb getAccessTokenVerb() {
return Verb.GET;
}
@Override
public Verb getRequestTokenVerb() {
return Verb.GET;
}
}
Great information you have to share here.
Where can I find scribe library? And download .jar file?
You can download it from here https://mvnrepository.com/artifact/org.scribe/scribe/
thanks
I have some questions.
Which version do you use?
I am getting from consumer his login and password for site based on wookomercy – what do I need to do?
How can I made authorization by it?
Please answer me – i am noob
Hi, i ve a problem when i do the request :
“{“code”:”woocommerce_rest_authentication_error”,”message”:”Firma no v\u00e1lida – la firma proporcionada no coincide.”,”data”:{“status”:401}}”
Great info!
Leave a Reply