Comments (8)
This project doesn't support the Google Play extended app properties yet. There's a newer .proto file available at https://github.com/egirault/googleplay-api - I'll try to port it to PHP myself.
from android-market-api-php.
OK, here's my progress so far:
-
I managed to make googleplay.proto.php from https://github.com/egirault/googleplay-api 's googleplay.proto using https://github.com/stuporglue/protoc-gen-php
-
I can login then make requests to https://android.clients.google.com/fdfe/[API call] and get the protobuffers back
-
There are however some unsupported things in protocolbuffers.inc.php: first, I got the Exception "I've not coded read_uint64 yet", then I commented it out and I got "Unsupported wire_type"
-
When I commented that out as well :) I got the ResponseWrapper object, but it seems to be partially corrupted, for example this value is OK:
["imageUrl_:protected"]=> string(89) "https://lh3.ggpht.com/B5iXLcit6N71-dqt8FDn8vhmsKTmLqJlByz98L8UoCV85S_u9haWeUZmYjrOodjFFcU"
However this is not (note the garbage before "http"):
[0]=> string(93) "��*Whttp://lh4.ggpht.com/u9Ur-xOslvqXqQPZm8TsTg6fXCeH9abZQKpdgVLl-JQotgTdc_0zJQusMxRLhtos2gH�"
I'll try to find some other (newer) protoc-gen-php branch on github now and get back to you. In any case I'll post my sources here soon.
from android-market-api-php.
Trying now with https://github.com/drslump/Protobuf-PHP
Edit: It works much better! I'll post my results soon.
OK, here we go - put these 3 files in the same directory:
- index.php: https://gist.github.com/4210198 (fill in your Google Account info and Android device ID!)
- GooglePlaySession.php: https://gist.github.com/4210201
- googleplay.php: https://gist.github.com/4210218
Then get library/DrSlump from https://github.com/drslump/Protobuf-PHP and put it together with them (PHP 5.3+ required!)
One more little fix is needed before you visit index.php: open DrSlump/Protobuf/Codec/Binary.php and put "return null;" before "throw new \RuntimeException('Group is deprecated and not supported');"
DISCLAIMER: This code is ALPHA at best, also the PHP code style is terrible, I just put everything together from different sources and would like to go to bed now :) Here's a little screenshot of the end result: http://shrani.si/f/2g/3G/QM0v2De/result.png
from android-market-api-php.
This sounds like a really interesting update, got any more test results @markostamcar? We do have a pull request for new proto that might be solving the same issue, #17, does that look similar?
from android-market-api-php.
Nope, seems the updates are just for "GetAssetRequest/Response". The .proto used above is completely different as it is for the Google Play app store which introduced a lot of new properties. Yours is querying the now-legacy Android Market API used on 1.6-2.1 devices.
from android-market-api-php.
Hi @markostamcar - I have made some changes to the proto buffer and the api version headers were sending 1-2 days ago. If you could clean up or assit, i could test and merge your pull request.
from android-market-api-php.
Any luck @markostamcar
from android-market-api-php.
Yes, with https://github.com/egirault/googleplay-api ;)
from android-market-api-php.
Related Issues (20)
- Warning: fread(): Length parameter must be greater than 0 HOT 4
- Get the url of the item on the play store. HOT 1
- Having problem with startIndex other than 0
- Package name instead of Application ID HOT 1
- Working on localhost but not in remote server HOT 5
- Cannot fetch app data from apps with country restriction HOT 4
- download apks?
- EntriesCount problem HOT 6
- App Icon and link HOT 4
- How to get my apps data HOT 1
- Paid apps search with pname doesn't work HOT 1
- Can't fetch apps with _ in the id HOT 3
- get app translate HOT 3
- Exception: Required fields are missing HOT 6
- How to filter app search for a particular language/region?
- Certain applications failing to retrieve general information.
- cannot filter application id
- Comments AuthorID in int
- Not getting authsubtoken in response HOT 1
- Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-market-api-php.