fetching android app's information in PHP - php

I've been looking for some mechanism through which I can fetch android app's information such as app's ID in market, it's category, pricing, its icon and likewise from Google Play. I know there's a facility for App store for iOS, in which we can fetch app's information through URL below, which returns us back JSON of it:
http://itunes.apple.com/search?media=software&term=[query_word]
I need same for Android Market. Is there any URL for doing the same?
thanks in advance.

Here is Android Market API ported to PHP:
https://github.com/splitfeed/android-market-api-php

Related

Possible to track location via android mobile gps using Google API?

I have developed fleet management using PHP. Here i plan to track vehicle in real-time and store the locations in my database.
My question is: Possible to track location via android mobile gps using Google API?
If it is possible please give me a way to create this.
Thanks in advance...!
PHP, which is a server-side language, can't query the device's location, instead the client application should get GPS location coordinates via Android's API and send it to the PHP server (for example via a POST request), then the server can handle the data and store it into the database.

Separating Facebook App Insights

We have a PHP app that uses the graph API to post videos and photos to a users timeline.
We can gather all insights for the app which is great but need a way to separate them based on which customer is making use of our service. We we use the graph API to gather the insights.
Can this be done?

Login using google account and showing purchased movie from playstore

I am very new to Google API implementation. Need help regarding this.
My Requirement -
Showing purchased movie from play store in a single web page (php page) using google account
I have client id, secret key etc.
Let me know how to do it.
Firstly I need to login using gmail id. Then to show movie from it.
I have downloaded a google-auth-api from github. the example are not working properly
The Google Play Store does not appear to expose any API to determine what movies a user has purchased. The only purchases APIs I was able to find were specific to Android, and only work on in-app purchases for the current application.

Creating a Web frontend for Android App using android APIs.

Thank you in advance for answer the question.
Here is the scenario and I want some suggestion of guideline how I can proceed.
I have an android app for Music streaming with following features
Music Streaming Ofcourse
Creating Playlists
user signin/signout
Search by category like album or artists or genre FM Radio Streaming
Push Notification
Equalizer and so on.
I also have a backend that is created in Ruby on Rail (Mysql database) for Music management like adding songs, genre, albums and artists. It also handles sending push notification and all.
And now I want to create a web frontend for users to enjoy the songs through their laptop or desktop so that I can give my users the flexibility to play songs, view playlist that they create in android devices.
Here is the main question:
How Can I create the frontend to use the json api that my android app is using so that I dont have to create another backend for the website.? Let me know if its possible or not.
If not possible to use the json api then how can I proceed so that I avoid another backend work?
Sure it's possible. Pass the json string to the web service as a URL parameter.

Is it Possible to get itunes like xml/json data from android market for each App

Itunes provide URL or all apps in App-store like to get details in JSON/XML Format
http://itunes.apple.com/lookup?id=[appid]
There is no any API for android market i have got online. i tried to get details from these html pages using java script by fetching android market query
https://market.android.com/details?id=com.[companyname].[app name]
but it is not getting fetch all the relevant data as iTunes. Is there any way i can fetch all data from android market app page html code or any API available for this?
May be it's help to you http://code.google.com/p/android-market-api/
By the way, last rumors, Google has renamed Android Market to Google Play.
To expand on devzorg's answer, - yes http://code.google.com/p/android-market-api/ will give you the application data you seek. And no - the format isn't (quite) valid JSON, although it is close afaik. The example snippet below (from an AppsResponse using the Android Market Library) won't pass JSON validation on jsonlint.com until you add quotes to all the variables and a set of external parens.
app {
id: "v2:com.geodesic.munduTV:1:30818"
title: "Mundu TV- Mobile TV, Live TV"
appType: APPLICATION
creator: "Geodesic"
version: "3.4.4"
rating: "3.6129606"
ratingsCount: 2253
..
}
Unfortunately Google Play (previously known as Android Market) does not expose an API like the Apple App Store, officially named iTunes Search API.
To get the data you need, you could develop your own HTML crawler, parse the page and extract the app meta-data you need. This topic has been covered in other questions, for instance here.
If you don't want to implement all that by yourself, you could use a third-party service to access Android apps meta-data through a JSON-based API.
For instance, 42matters.com (the company I work for) offers an API for both Android and iOS, here more details:
https://42matters.com/app-market-data
The endpoints range from "lookup" (to get one app's meta-data, probably what you need) to "search", but we also expose "rank history" and other stats from the leading app stores. We have extensive documentation for all supported features, you find them in the left panel: https://42matters.com/docs/overview
I hope this helps, otherwise feel free to get in touch with me. I know this industry quite well and can point you in the right direction.
Regards,
Andrea

Categories