热门标签 | 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.)

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


推荐阅读
  • 本文详细介绍了如何使用 Yii2 的 GridView 组件在列表页面实现数据的直接编辑功能。通过具体的代码示例和步骤,帮助开发者快速掌握这一实用技巧。 ... [详细]
  • 使用 Azure Service Principal 和 Microsoft Graph API 获取 AAD 用户列表
    本文介绍了一段通用代码示例,该代码不仅能够操作 Azure Active Directory (AAD),还可以通过 Azure Service Principal 的授权访问和管理 Azure 订阅资源。Azure 的架构可以分为两个层级:AAD 和 Subscription。 ... [详细]
  • 本文详细介绍了 Apache Jena 库中的 Txn.executeWrite 方法,通过多个实际代码示例展示了其在不同场景下的应用,帮助开发者更好地理解和使用该方法。 ... [详细]
  • 本文详细介绍了 MySQL 中 LAST_INSERT_ID() 函数的使用方法及其工作原理,包括如何获取最后一个插入记录的自增 ID、多行插入时的行为以及在不同客户端环境下的表现。 ... [详细]
  • 本文详细介绍了中央电视台电影频道的节目预告,并通过专业工具分析了其加载方式,确保用户能够获取最准确的电视节目信息。 ... [详细]
  • PHP 编程疑难解析与知识点汇总
    本文详细解答了 PHP 编程中的常见问题,并提供了丰富的代码示例和解决方案,帮助开发者更好地理解和应用 PHP 知识。 ... [详细]
  • Python 异步编程:深入理解 asyncio 库(上)
    本文介绍了 Python 3.4 版本引入的标准库 asyncio,该库为异步 IO 提供了强大的支持。我们将探讨为什么需要 asyncio,以及它如何简化并发编程的复杂性,并详细介绍其核心概念和使用方法。 ... [详细]
  • 本文详细介绍了如何使用PHP检测AJAX请求,通过分析预定义服务器变量来判断请求是否来自XMLHttpRequest。此方法简单实用,适用于各种Web开发场景。 ... [详细]
  • c# – UWP:BrightnessOverride StartOverride逻辑 ... [详细]
  • 本文详细介绍了如何通过多种编程语言(如PHP、JSP)实现网站与MySQL数据库的连接,包括创建数据库、表的基本操作,以及数据的读取和写入方法。 ... [详细]
  • 本文介绍了如何使用PHP代码实现微信平台的媒体素材上传功能,详细解释了API接口的使用方法和注意事项,确保文件路径正确以避免常见的错误。 ... [详细]
  • 根据最新发布的《互联网人才趋势报告》,尽管大量IT从业者已转向Python开发,但随着人工智能和大数据领域的迅猛发展,仍存在巨大的人才缺口。本文将详细介绍如何使用Python编写一个简单的爬虫程序,并提供完整的代码示例。 ... [详细]
  • 本文探讨了如何在 PHP 的 Eloquent ORM 中实现数据表之间的关联查询,并通过具体示例详细解释了如何将关联数据嵌入到查询结果中。这不仅提高了数据查询的效率,还简化了代码逻辑。 ... [详细]
  • 深入解析JMeter中的JSON提取器及其应用
    本文详细介绍了如何在JMeter中使用JSON提取器来获取和处理API响应中的数据。特别是在需要将一个接口返回的数据作为下一个接口的输入时,JSON提取器是一个非常有用的工具。 ... [详细]
  • 探讨如何正确使用 Fetch API 进行参数传递,分析不同写法的差异及解决方案。 ... [详细]
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社区 版权所有