为什么我在https://www.googleapis.com/appsactivity/v1/activities上遇到400错误? [英] Why I am getting 400 error on https://www.googleapis.com/appsactivity/v1/activities?

查看:126
本文介绍了为什么我在https://www.googleapis.com/appsactivity/v1/activities上遇到400错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我总是得到400 - 错误的请求 - invalidArgument

  400 OK 


- 隐藏标题 -

cache-control:private,max-age = 0
content-encoding:gzip
content-length:133
content-type:应用/ JSON; charset = UTF-8
日期:星期二,2015年4月07日11:11:32 GMT
过期时间:2015年4月7日星期二,11:11:32 GMT
服务器:GSE
不同的:Origin,X-Origin

{
error:{
errors:[
{
domain:global ,
reason:invalidArgument,
message:Bad Request
}
],
code:400,
message:Bad Request
}
}

我不是使用任何参数,在文档中它们都是可选的



这个错误出现在以下所有情况中


  1. 文档页演示

  2. 游乐场
  3. 使用python api的

有人可以帮助我吗?我做错了什么?您可以在文档页面中尝试: https:/ /developers.google.com/google-apps/activity/v1/reference/activities/list?hl=es



谢谢

解决方案

好的,我发现这个问题, drive.fileId 不是可选的,是文档中的错误,源应该是=drive.google.com和drive.fileId =file_id

@dubhov,感谢您的帮助。但YOUR_API_KEY由Google内部处理。


I am always getting 400 - Bad request - invalidArgument

400 OK


- Hide headers -

cache-control:  private, max-age=0
content-encoding:  gzip
content-length:  133
content-type:  application/json; charset=UTF-8
date:  Tue, 07 Apr 2015 11:11:32 GMT
expires:  Tue, 07 Apr 2015 11:11:32 GMT
server:  GSE
vary:  Origin, X-Origin

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalidArgument",
    "message": "Bad Request"
   }
  ],
  "code": 400,
  "message": "Bad Request"
 }
}

I am not using any parameter, in the documentation their all are optional

this error comes in all the below cases

  1. Documentation page demo
  2. playground
  3. using python api

Can somebody help me?, what I am doing wrong? you can try in the documentation page: https://developers.google.com/google-apps/activity/v1/reference/activities/list?hl=es

Thanks

解决方案

Ok I found the issue,

the source and drive.fileId are not optional, is an error in the documentation, source should be ="drive.google.com" and drive.fileId="file_id"

@dubhov, thank for the help. but "YOUR_API_KEY" is handle internally by google.

这篇关于为什么我在https://www.googleapis.com/appsactivity/v1/activities上遇到400错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆