Implementing Android Rest Client using the Magento REST api with Scribe Library

Updated 14 December 2016

Save

 

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.

 

 

Screenshot_3

 

Let us first add dependency in the project:

Android Rest API client will implemented as:

 

 

Congratulation now you can get data from the Magento Framework using Rest API in your Android Application…..

 

 

 

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • sujith
  • Vlad
  • Start a Project


      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home