热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

ASCII绘图显示为对Google的请求的JSON响应-ASCIIdrawingappearingasJSONresponseofrequesttoGoogle

IamcurrentlyworkingonasmallphplibrarywhichwouldallowuserstoaccessdatafromtheGoogle

I am currently working on a small php library which would allow users to access data from the Google Play Developer Console, and insert it into a database, for future use.

我目前正在开发一个小型的php库,允许用户从Google Play Developer Console访问数据,并将其插入数据库中,以备将来使用。

To achieve this, I authenticate into the corresponding Google service with GET and POST requests (this part is still ok) and then do various POST requests to get all the data I need.

为了实现这一点,我使用GET和POST请求对相应的Google服务进行身份验证(这部分仍然可以),然后执行各种POST请求以获取我需要的所有数据。

Everything was working fine, I got the script itself functioning (for fetching JSON responses) since 2 or 3 weeks, and I am launching it on a daily basis since then : no problems.

一切都工作正常,我让脚本本身运行(用于获取JSON响应)从2或3周后,我从那时起每天启动它:没有问题。

Today, I tried to launch it again, and as a JSON response for any POST request, I'm getting this :

今天,我尝试再次启动它,作为任何POST请求的JSON响应,我得到了这个:

enter image description here

I swear this is no fake, yet it's quite scary. Is Google trolling me right now? Plus, the web version of the console still works, it just seems that my requests from outside don't.

我发誓这不是假的,但它非常可怕。谷歌现在正在拖我吗?此外,控制台的网络版仍然有效,似乎我的外部请求没有。

I'm working on a localhost, so the hacking possibility is near (if not) 0, and I'm really worried that I made all this work for nothing.

我正在研究一个本地主机,因此黑客攻击的可能性接近(如果不是)0,我真的很担心我把这一切都搞砸了。

if Google is actually trying to silence me from fetching data, plus making me rage, they are doing it right.

如果谷歌实际上试图让我无法获取数据,加上让我愤怒,他们就是在做正确的事。

I've been googling this with all sort of keywords, still no luck.

我一直用各种关键字搜索这个,但仍然没有运气。

1 个解决方案

#1


1  

Actually, I have solved this problem. As Google Webkit seems to regularly change the format of its JSON responses, my parsing and regular expressions were not working anymore to get the correct identifiers for authentication. I still think Google is trolling users or developers of non-official APIs, but now I have found a solution : manually check my parsing functions, adapting them to get every right value, and it's working again.

实际上,我已经解决了这个问题。由于Google Webkit似乎经常更改其JSON响应的格式,因此我的解析和正则表达式不再起作用以获取正确的身份验证标识符。我仍然认为谷歌正在篡改非官方API的用户或开发者,但现在我找到了一个解决方案:手动检查我的解析功能,调整它们以获得每个正确的价值,并且它再次起作用。

It's a pain, but if someone ever gets this problem and ends here, you know what to do!

这是一个痛苦,但如果有人遇到这个问题并在此结束,你知道该怎么做!

(I can't be more precise, since these changes are totally random, but those are guidelines.)

(我不能更准确,因为这些变化是完全随机的,但这些是指导方针。)


推荐阅读
author-avatar
两只兔子哦
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有