WordPress Api + Android - android

I have a blog which is written in WordPress but not hosted on Wordpress.com, and I would like to develop an Android app to interact with this blog via the Wordpress REST Api. I searched in the Wordpress developper documentation and it seems that you can interact with this API only through Wordpress.com.
I have also made some Google searches and I found that many plugins provide this functionality but I don't know which one to use.
My Android app will interact with this blog. It will get all the blog posts, comment, post comments. If the user is an admin, he can create new posts. Note that I could simply create an RSS feed and everything would be alright but I want to take advantage of the Wordpress API.
What are the best solutions to achieve this?

One Doubt, if its API Means you can Use JSON or XML for Android
First Check for JSON
Check This
other wise use that API and Create a Custom RestFul web services which Reads Data form that API,.. Automatically.
Better to Use API for Fast Results..

Is there a reason to develop this app yourself? Because if there's none, you should check the official app by Wordpress in the Google Play. I use it for some self hosted blogs and it's very helpful.

As I understand - to get required functions you need WordPress REST API (Version 2) and one of plugins for authentication: Basic-Auth of OAuth1 WP-API on GitHub
For more details please see official documentation on v2.wp-api.org

Related

How do i create android application to integrated with wordpress?

1)How do I create android application which integrated with wordpress website? and please give me perfect solution and references.
2)I had completed my wordpress websites and also try simple plugin of wordpress json api.
*https://wordpress.org/plugins/search.php?q=json
3) I found where i need to create my custom web services so if i got something that create my own custom web service which I used in my application.
4) I tried to fix it with simple static data but I realise that it would give bad impression and helpless app if I do that.
5) Give me any reference and perfect example regarding android application integrated with wordpress.
Ok, This is my own example of integrating android with wordpress.
Install Wordpress Rest APi plugin (Which you have already done)
Go through the documentation: http://v2.wp-api.org/
Get postman running on your machine https://www.getpostman.com/, and learn how to use it. http://www.sitepoint.com/api-building-and-testing-made-easier-with-postman/
Try to make a simple request: http://yourwebsite.com/wp-json/wp/v2/posts, It should print out in Json format and you are good to go.
Use jsonschema2pojo.org to generate plain Java Objects from JSON or JSON-Schema.
Learn how to consume API's, I recommend using Retrofit, learn how to use it. You can start here: https://github.com/codepath/android_guides/wiki/Consuming-APIs-with-Retrofit
Create a simple MainActivity and model to test your data, just to see how it works.
If you already have a good knowledge of android development, I think this info should get you started with developing a Wordpress android app.

Creating native android application for a Wordpress website

I want to create a native android application for a wordpress website. I want the user to be able to
view the blogs according to the categories.One approach I found is to use xml-rpc api which is
provided by Wordpress. With administrator rights it is working, but I would like to read blog
categories and posts without hardcoding administrator credentials for security reasons.
Another approach I found is to use RSS feed parsing. But I'm not able to get through it properly. Is there any other alternative for doing this? Any suggestion or advice would really be helpful..
An other way you can explore is to use the JSON API Plugin. I used it for a previous app, and the features provided are quite good to retrieve blog content. Anyway you retrieve data in a JSON file then you have to treat it. I used Jackson library which provided simple features too.

How to create a full-featured Android app for a website?

This is my website: http://www.stustu.co.uk..
I want to create an app that can pull down the listings from this website and display the entries in the form I want; enable users to manage their online accounts conveniently within the app; post new entries. Basically, a similar app to Amazon and eBay.
But I've no clue about how to query the information from the website in the app...
The website itself is WordPress based (quite simple, therefore), and my initial thought was to find some API from WordPress. I did find the official WordPress app, which comes with the source code, but it helps little as its code mainly deals with blogging.
So here's my question:
What are the normal ways a web developer would use on the server side to achieve my aim?
Is that achievable for WordPress?
If not, are there workarounds?
I'm a new self-taught developer, sorry that the question is a bit broad.
The most common approach when you're trying to communicate between an app and a website is to use a web service. Popular architectures include using REST or SOAP to communicate with your server.
This video will teach you how to use REST interface properly on your Android application, while in this link you will find that using SOAP has its disadvantages over REST especially on Android(or mobile in general).
I personally recommend using REST APIs with responses in JSON format for your web service. Twitter did the right thing with their own rest api, and you can structure yours similarly.
Other links you will be finding useful as you develop your application:
google-gson
jackson JSON
http://blogs.developerforce.com/developer-relations/2011/02/rest-api-android-awesome.html
Sorry about not answering your question about Wordpress, as I never had the opportunity to use it. For my apology, have this potato.
How much experience do you have with android? If you have none you should go find the getting started tutorials on the developer site and complete a few of them to familiarize your self with the structure of an android application before you attempt something like this.
The next thing to consider is: does your site look and act nicely on mobile? If so do you want your application to simply be a dedicated browser that pulls up your site? Or do you want to create the entire application natively? In the latter case you'll have to build (or find) some sort of APIs that allow you to tie in to the functionality of your site from within the java in the application.
My experience is mostly on Android so I cannot suggest any strategies or examples for how you'd go about setting up your APIs. But I do know if you attempt to build something that sophisticated natively on android with little experience you'll likely get frustrated early.

Is it possible to accept payment in all currency in my android app using google checkout?

I am trying to integrate payment gateway in my android app.
Purpose of app is to buy online e books.
Site is already Developed and it is using EBS service for payment.
To be specific App is designed for Asian countries only.
Can anyone help me regarding this?
Do i need to simply call my site URL for this or it is not a practical approach.
Any help would make work my simpler as i am not familiar with this stuff.
Please help me if you have experience with it but please do not just copy paste links as i have gone through many sites for that.
Here, EBS support you can find the API that EBS provides. There is no specific API currently available for android. I think you should have to implement it at your server side and make a call with web services.

Source codes for apps built on Foursquare apis

I've been planning to build an Android application built on Foursquare APIs. I went to the foursquare developer site and tried out the android oauth example. Also I noticed in the showcase several fancy apps such as Instgram, LocalMind. I wonder where (websites like github) I can find their source codes so that I can have a taste of how to develop a real foursquare app.
I am not sure there is a direct answer to your question.. With the exception of code snippets found by google code search or regular google search, do not expect to find full source code for integration with APIs..
As far as oauth goes, there are many examples with a simple google search on how to make it work (note that you have the Venues API that does not requires the oauth process)
As far as source code goes, you should check out this page it should have links to many examples. (got here after two clicks from that page..)
From my experience, we are developing a foursquare-enabled app with a custom server software - in short, our Android app will access our server, which will access foursquare (if required) and get data and pass it to our client (Android/iPhone/whatever).
Bottom line - eventually, you really should learn the API yourself, know the different endpoints and the returned data structures, experiment with different search results and then, if you wonder on what is the right way to get specific data or if you think you are doing something right and getting the wrong data, this is probably the place to ask about it.
The API Explorer should help a lot in doing that.

Categories

Resources