Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Thanks to Pablo Fernandez for creating Scribe library for us.
First we have to generate the REST roles and consumers in the Magento dashboard, the roles are going to map the resources inside Magento that this role need access to and the consumer is going to represent the keys to be used inside our custom app that use the Scribe framework.
In order to add consumers to Magento from the REST api we create an OAuth REST Consumer where it will store the keys to be used by our app. We create them using the Magento dashboard and selecting System > Web Services > REST – OAuth Consumers like in the next image.
Let us first add dependency in the project:
compile 'org.scribe:scribe:1.3.7' 1 compile 'org.scribe:scribe:1.3.7'
Android Rest API client will implemented as:
Congratulation now you can get data from the Magento Framework using Rest API in your Android Application…..
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
This is Sujith, I have tried with the code, but after getting the auth_token=””, its asking for the login page url to enter the credentials in the android, so how we can send the login “Username” and “Password to the magento platform from android”,
(After login we can authorise and get the verifier code and access token to android).
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.
Vincenzo Carrano
Administrator, Segshop
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.