How can I reset achievements from Google Game Services? -
i'm testing game using google's new games services, , i'd reset account's achievements testing.
i've found can reset achievements using google's apis (https://developers.google.com/games/services/management/api/#achievements) , i'm using oauth 2.0 playground send post request, it's not working :(
specifically, i'm sending post request "https://www.googleapis.com/games/v1management/achievements/reset" detailed in link.
and, when go code.google com , check services, play services "on".
here output. how can reset achievements testing? close? apparently "access not configured" how do that? point of whole first 2 steps of oauth2.0 playground if not grant access?
http/1.1 403 forbidden content-length: 205 x-xss-protection: 1; mode=block x-content-type-options: nosniff x-google-cache-control: remote-fetch -content-encoding: gzip server: gse reason: forbidden via: http/1.1 gwa cache-control: private, max-age=0 date: sun, 19 may 2013 04:11:38 gmt x-frame-options: sameorigin content-type: application/json; charset=utf-8 expires: sun, 19 may 2013 04:11:38 gmt { "error": { "errors": [ { "domain": "usagelimits", "reason": "accessnotconfigured", "message": "access not configured" } ], "code": 403, "message": "access not configured" } }
this how got work:
open google play developer console, go linked apps under game services , click link app -> web, url use https://developers.google.com/oauthplayground , complete setup of linked app. make sure same url listed authorized redirect uri.
go https://developers.google.com/oauthplayground , click on gears icon in top right, select use own oauth credentials, , copy client id , client secret web app https://code.google.com/apis/console.
for scope in oauth playground's step 1 use https://www.googleapis.com/auth/games, found under google play game services api.
do post https://www.googleapis.com/games/v1management/achievements/reset or https://www.googleapis.com/games/v1management/achievements/resetallforallplayers or whatever, leave other options is.
profit :)
note:
at first doing step 2. after step 3. , gave me 403
Comments
Post a Comment