Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
691 views
in Technique[技术] by (71.8m points)

android connect to magento

i am using eclipse for development of android application. i want to connect my application to magento. i am new developer so i have not too much idea about this.

below i mention some problem which i want to solve:-

  1. my database is in mysql and mysql connect to magento. so how my app connect to magento?

  2. if i connect my app to magento through web service but i have no idea about how to connect through web service to magento?

please help me

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If anyone looking for android application for magento site, you can use this.

Magento offers two API's to develop your app in Android

  1. SOAP API - http://www.magentocommerce.com/api/soap/introduction.html
  2. REST API - http://www.magentocommerce.com/api/rest/introduction.html

  3. You have to create a New User in your Magento Store with roles.That you can do by loging in to your Admin and the option is under the system->WebServices->User&Roles.

  4. You have to create role and a user.Then assign the roles to the User.
  5. For using SOAP API use this tutorial http://inchoo.net/dev-talk/android-development/magento-v2-api-soap-android/
  6. For REST api use - Android - Magento REST Api Cannot Respond Properly
  7. In REST API, Oauth is there This example is without Oauth.

Before stating Android side make sure the magento configured properly. Test the urls in browser first then use it in Application.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...