android connect to magento - android

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...

Related

How can I connect the between web application with an application?

1) I have a web application. This web app is for a user to buy a point.
2) I have an android application for parking payment. Payment is based on point that user buy from the admin. Since I made two things which are web app for admin and android app for user, so I will have two database for each one right?
3) So, how can I transfer the point that user buy from the admin to an android application? Is this thing has to do with JSON fetch or pass data?
4) Basically I want the user to get the point from the web application? Your answer will be really helpful to me, thank you :)
The issue is design issue. Your mobile app and the web app don’t have to be two separate.
You can have one application with one database that both web and mobile point to.
If you’re using Android look into ionic framework that can help you code one codebase targeting both web and mobile.
See
https://ionicframework.com
https://scotch.io/tutorials/create-your-first-mobile-app-with-angularjs-and-ionic
You will have to build a single server for both your admin and your app. Both will have a single database that is controlled by your server. Your app will request the same server to redeem points and your admin will request the server to add points. You can use retrofit library in android for making api calls to your server
The web application and the android application must connect to the same database on the server. In the android application, to you get the data via json, you must use asynctask to download the server information or use libraries like Retrofit or volley that facilitate the handling of json.

how to create phonegap app using magento soap or rest api

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.

How to access app engine datastore by android app?

I have created app engine app (using Python)(devappdemo.appspot.com).
Now i want to create an android app for the same which should access the same datastore.
I googled it and i found that it can be done with CloudEndPoints but dont know from where to start how it can be done. Please suggest any tutorials or step by step instructions to do it.
Google Cloud Endpoints would be the easiest way at the moment to get started with it. Here is the overview and tutorial.
Cloud Endpoints will help you generate the Endpoint API (REST API) and it also helps to generate the Android client code, that you can easily integrate into your Android application.
If you already have exposed your Python application over Web Services, you could directly use that from your Android application.

Access Heroku database from Android application

I've built a Rails 4 web application with PostgreSQL database and hosted it on Heroku. The future plan for that database is to also be used by one Android application.
I am not completely sure how can I accomplish that. Do I need to build another REST application and host it on Heroku and somehow connect to the same database or there is another way?
How to connect with Android application to that database which is used by the web site? I know I can't connect directly.
Thank you for your guidance.
You don't need another app - just build an API for current one and then you can communicate from Android app to your web application (web app will connect to db and return data).
Have a look at Twitter API as example - you can access different resources and manage them via Twitter API
https://dev.twitter.com/docs/api/1.1
You can build something similar - create rails controllers that access your database and respond with structure you want - preferably JSON format of your models (or something custom if you need)
From Android app you can send request to your API and parse JSON responses - then process data your own way on Android app.
Don't forget about authentication between your Android app and web application - let only your Android app to use it.
I encourage you to browse internet for best practices 'How to create an API' :)

Integrate Appcelerator Cloud Services to a custom website made with ASP.NET

I'm really new to mobile world, so I'd like to get some opinion from experienced people.
After several days searching over the internet, I'm wondering if it's possible
integrate Appcelerator Cloud Services to a custom website made with ASP.NET, for example.
Although my mobile application, built with Titanium, it's linked to ACS, and works fine, I don't know if
it's possible to manage data stored in ACS from a custom website. To clarify, in one point there is my mobile application
talks to a webserver (ACS, for example) and other point there is a website, to manage the data stored in ACS.
What do you think, someone achieved this?
Or is it preferable to write a webserver from the scratch, store my data in somewhere, and forget about ACS?
Thank you.
Appcelerator says
Appcelerator Cloud Services (ACS) is a Mobile Backend as a Service
(MBaaS), offering a fast and easy way to build connected mobile apps.
Choose from a library of services such as push notification, status
updates, photo storage, and social integration, or create your own
custom cloud services.
Here in this page - Getting Started: Using the Javascript SDK - you can see how we can use javascript SDK which lets you access the Appcelerator Cloud Services server through some simple to use JavaScript calls. You can use this to develop web-based app.
ACS has a REST API which you can access through anything that supports xhr (which .NET does). For instance, to create a new user in ACS, you use the following link:
https://api.cloud.appcelerator.com/v1/users/create.json?key=YOUR APP APP KEY?email=john.smith#company.com&role=teacher
There are other properties you can tag onto the querystring to create a new user from a REST call. They have a complete API using REST. It's all documented. You can even send push notifications to devices from your custom website using the REST API! It's pretty cool.
http://cloud.appcelerator.com/docs/api/v1/users/create#rest
Good luck!

Categories

Resources