Gmail身份验证错误:invalid_request缺少必需的参数:client_id

时间:2019-06-24 13:14:19

标签: r authentication google-authentication gmailr

尝试通过gmailr软件包访问gmail时遇到问题。

已经给出了Client和secret_key的输入,并且能够运行gmail_auth(..........)。但是,当我尝试提取messages()时,出现400错误。

也尝试使用.json secret_file。但是结果一样! 您能解释我在哪里缺少client_id吗?

  gmail_auth(scope = c("read_only", "modify", "compose", "full"), id = the$id,secret = the$secret, secret_file = NULL)

 messages(search="XX",num_results = 2, label_ids = NULL,include_spam_trash = FALSE,page_token = NULL, user_id = "me")
  1. 那是一个错误。
  

错误:invalid_request

     

缺少必需的参数:client_id

了解详情

请求详细信息 scope = https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.compose https://mail.google.com/ redirect_uri = urn:ietf:wg:oauth:2.0:oob response_type = code

0 个答案:

没有答案
相关问题