简体   繁体   English

如何使用PHP测试Google Market Place API

[英]How to test google market place api with php

I'm trying to use this api http://code.google.com/p/android-market-api/ . 我正在尝试使用此api http://code.google.com/p/android-market-api/ I would like to get some that from play store. 我想从Play商店买些东西。 like App name, description, screenshots and download rating(total downloads, week downloads....) 例如应用名称,说明,屏幕截图和下载评分(总下载量,每周下载量...)

I'm using the php version. 我正在使用php版本。 I uploaded all the code to my personal server. 我将所有代码上传到我的个人服务器。 www.example.com/test/. www.example.com/test/。 Should I configure anything else in addition of local.php, email and password fields? 除了local.php,电子邮件和密码字段外,我还应该配置其他任何内容吗? I only did that. 我只是那样做。

I have this error: 我有这个错误:

Uncaught exception 'Exception' with message 'HTTP request returned code 400' in /homepages/31/d229886149/htdocs/carlos/test/Market/MarketSession.php:212 Stack trace:
#0 /homepages/31/d229886149/htdocs/carlos/test/Market/MarketSession.php(160): MarketSession->executeRawHttpQuery('??????DQAAAMkAA...')
#1 /homepages/31/d229886149/htdocs/carlos/test/Market/MarketSession.php(147): MarketSession->executeProtobuf(Object(Request))
#2 /homepages/31/d229886149/htdocs/carlos/test/examples/test_categories.php(15): MarketSession->execute(Object(Request_RequestGroup))
#3 {main} thrown in /homepages/31/d229886149/htdocs/carlos/test/Market/MarketSession.php 

on line 212 在212行

Thank you. 谢谢。

After that I would like to implement it with codeIgniter 之后,我想用codeIgniter实现它

try with '0123456789123456' as an ANDROID_DEVICEID 尝试将“ 0123456789123456”作为ANDROID_DEVICEID

define('GOOGLE_EMAIL','someone@gmail.com');
define('GOOGLE_PASSWD','SomePassword');
define('ANDROID_DEVICEID','0123456789123456');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM