apigee - OAuth 2.0 And Google Cloud Print -


i created project called: "projectprint-123"

https://console.developers.google.com/apis/credentials/oauthclient?project=projectprint-123

credentials

web application name : projectprint-123

what ask can 1. authorized javascript origins 2. authorized redirect uris put empty? because testing localhost. ok. proceed empty.

what oauth consent screen? fill in email address @ part. ok. proceed next.

then try

https://www.google.com/cloudprint/getauthcode? printerid=5e0db751-9498-677d-9cf3-3a7284978279&oauth_client_id=254414591833-7lg4a5nnnh009g9ccf613notg8vceunp.apps.googleusercontent.com

fail:

{ "success": false, "message": "unknown, used or expired token.", "request": { "time": "0", "params": { "oauth_client_id": [ "254414591833-7lg4a5nnnh009g9ccf613notg8vceunp.apps.googleusercontent.com" ], "printerid": [ "5e0db751-9498-677d-9cf3-3a7284978279" ] } }, "errorcode": 506 }

i using apigee application send

https://apigee.com/console/others?req={%22resource%22%3a%22https%3a%2f%2fwww.google.com%2fcloudprint%2fgetauthcode%22%2c%22params%22%3a{%22query%22%3a{}%2c%22template%22%3a{}%2c%22headers%22%3a{%22headers_name_0%22%3a%22content-type%22%2c%22headers_value_0%22%3a%22application%2fx-www-form-urlencoded%22}%2c%22body%22%3a{%22attachmentformat%22%3a%22mime%22%2c%22attachmentcontentdisposition%22%3a%22form-data%22}}%2c%22verb%22%3a%22post%22}

i appreciate if can help. thank you.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -