How can i create a tokens for https://www.googleapis.com/auth/drive

77 views
Skip to first unread message

chuan

unread,
Sep 27, 2013, 3:41:11 AM9/27/13
to google-api...@googlegroups.com
When used command [curl -d "client_id=my_id&scope=https://www.googleapis.com/auth/drive.file" https://accounts.google.com/o/oauth2/device/code].
I got an error :
{
  "error" : "invalid_scope",
  "error_description" : "Not authorized to request the scopes: [https://www.googleapis.com/auth/drive.file]",
}

But those command was success 

{
  "device_code" : "4/aadxLPZDag0lmaLQemw5C-wPlvwq",
  "user_code" : "z2ydedit",
  "verification_url" : "http://www.google.com/device",
  "expires_in" : 1800,
  "interval" : 5
}

so, How can i create a tokens for https://www.googleapis.com/auth/drive ?
Reply all
Reply to author
Forward
0 new messages