相关疑难解决方法(0)

zsh:找不到匹配项:请求[安全]

我试图运行python urllib2脚本并收到此错误:

InsecurePlatformWarning:真正的SSLContext对象不可用.这可以防止urllib3正确配置SSL,并可能导致某些SSL连接失败.有关更多信息,请参阅https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

谷歌搜索错误解决方案后,堆栈溢出是下载请求的安全包:
pip install requests[security]

但是当我跑步时,我得到错误......

zsh:找不到匹配项:请求[安全]

任何人都知道为什么zsh没有拿起这个库,它安装/升级请求就好了,我不知道为什么这不起作用

我在Debian服务器上运行它...

python security ssl python-2.7 python-requests

21
推荐指数
1
解决办法
7495
查看次数

Authenticate a GET request to Google Play Purchase API with service account python

I need to verify purchases of my android App from my AWS lambda in python.

I have seen many posts of how to do so and the documentation and here is the code I have written :

url = f"{google_verify_purchase_endpoint}/{product_id}/tokens/{token}"
response = requests.get(url=url)
data = response.json()
logging.info(f"Response from Google Play API : {data}")
Run Code Online (Sandbox Code Playgroud)

When I do so, it throws a 401 status code not allowed. Alright, I have created a service account to allow the request with OAuth, but how …

python android in-app-purchase google-api-python-client google-play-developer-api

5
推荐指数
1
解决办法
1027
查看次数