Closed GoogleCodeExporter closed 9 years ago
Are you able to run the command line client? I have a similar issue but I get
"Missing Access Token" error. I also get this error when running the command
line client too.
http://code.google.com/apis/predict/docs/general_discussion_forum.html?place=msg
%2Fprediction-api-discuss%2Ff1hYzq9QVIA%2FYycntxMhksUJ
Original comment by adambro...@gmail.com
on 18 Jun 2011 at 12:14
[deleted comment]
Adam, you should CC the google-api-ruby-client mailing list in the future — I
can't read the forums for all APIs, just the client one, and same goes for all
the other client maintainers.
I'll take a look and see if I can duplicate the issue you're having.
However, I'd recommend using OAuth 2 whenever you can. It's much better
supported at this point and a lot easier to use. Plus the user experience is
way better.
Original comment by sporkmonger
on 18 Jun 2011 at 1:21
Do this instead:
bin/google-api oauth-2-login \
--scope=https://www.googleapis.com/auth/prediction \
--client-id=<your-client-id> \
--client-secret=<your-client-secret>
Then you can make your API calls:
google-api execute prediction.training.insert -- data=bucket/train.csv
Original comment by bobaman@google.com
on 18 Jun 2011 at 4:03
Also note that the command line tool does not currently handle token
expirations gracefully, so you'll need to reauth the client manually. It's not
intended for usage in scripts. You should use the client directly for that.
Original comment by bobaman@google.com
on 18 Jun 2011 at 4:05
To barmstrong's original issue, did you URL unescape the verifier? Verifier
codes pulled from the URL will usually be percent encoded.
Original comment by bobaman@google.com
on 18 Jun 2011 at 4:07
No response from original reporter. Closing.
Original comment by bobaman@google.com
on 6 Oct 2011 at 9:42
Original issue reported on code.google.com by
barmstrong@gmail.com
on 17 Jun 2011 at 10:37