I want to create an android app using phone gap using Magento soap /rest API. the basic problem I am facing is when I use rest API, I am not able to authenticate the soap user I have created in Magento admin and when I use soap I am able to authenticate but not able to log in the customer . and not able to fetch product images. someone Please advise me which API I should use to create app how should I use it.
You most likely need to whitelist your site domain in the Phonegap app.
http://docs.phonegap.com/en/2.4.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide
the answer is to create custom module and write own web Services instead of using soap and rest api.
Related
I need to build a Native Android Application for a Website that I have successfully developed. How do I go about this without using the webView. Someone talked about REST API But I don't just know how to go about it.
Although I have the Application in webView Version already but it is just still as the normal website mobile view. No Interactivity.
Your solution is REST API. Here is a good example.
How to create REST API for Android app using PHP, Slim and MySQL
Basically schema should looks like backend(all your data) - Rest Api (you must provide interface to your backend data with CRUD operation like PUT-DELETE-UPDATE-RETREIVE) - users for your Rest Api (mobile apps that would call this api to use data from backend)
For backend look at this tutorial to start https://www.youtube.com/watch?v=xkKcdK1u95s&list=PLqq-6Pq4lTTZh5U8RbdXq0WaYvZBz2rbn
For android app you should use Retrofit2 to facilitate RestApi calls.
I am making an android app i want to add a feature that user can operate their freelancer account with my app. I searched that freelancer provides api but i don't know that how to use that api.
Some source to get stated and tutorials for how to use that are appreciated.
thanks
Freelancer API is REST webservice API type. For example `link.
Firstly connect and download data from specific URI then parse it with JSON or XML parser.
I am developing an Android App for an E-Commerce company and i need to access the online Magento database for their catalog through an Android app. So please guide me a way for the solution and also provide suitable tutorials if you find any because i did not get any tutorial.
you have to create webservice. using webservice you can get it data from server
like this you can parse the data from the server
http://www.androidhive.info/2012/01/android-json-parsing-tutorial/
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:-
my database is in mysql and mysql connect to magento. so how my app connect to magento?
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
If anyone looking for android application for magento site, you can use this.
Magento offers two API's to develop your app in Android
SOAP API - http://www.magentocommerce.com/api/soap/introduction.html
REST API - http://www.magentocommerce.com/api/rest/introduction.html
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.
You have to create role and a user.Then assign the roles to the User.
For using SOAP API use this tutorial http://inchoo.net/dev-talk/android-development/magento-v2-api-soap-android/
For REST api use - Android - Magento REST Api Cannot Respond Properly
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.
For those who are still looking at answer, I have put down my research in below link, we were able to sucessfully create mobile app for IOS and andriod with libraries mentioned in below link..please go through once..
http://www.siddharthvaghasia.com/2014/12/11/connect-ios-and-andriod-app-to-magento-store/
For andriod...here is steps with example..
http://www.siddharthvaghasia.com/2014/12/14/use-k2soap-library-android-platform-consume-magento-soap-api-v2/
Note- Not able to add to comment to posted in answer...
Can we create webservices in Drupal? Our web development team is creating a website in Drupal and they want to build an android application for the same and for that I need to use webservices to access the database.
Have a look at the services module
A standardized solution of integrating external applications with
Drupal. Service callbacks may be used with multiple interfaces like
REST, XMLRPC, JSON, JSON-RPC, SOAP, AMF, etc. This allows a Drupal
site to provide web services via multiple interfaces while using the
same callback code.
It's build for this reason. Drupalize.me android app is built on the services module, so too for many android applications.
Hope this helps... Muhammad.
Can we create webservices in Drupal?
Yes, You can Do it.
I had done it via JSON webservices.