我的目标是为现有用户的个人资料图片设置URL。我在App Engine上使用Google Identity Toolkit Java库。下面是我的代码:
GitkitUser u = gitkitClient.getUserByLocalId(localId);
u.setPhotoUrl(profilePictureURL);
gitkitClient.updateUser(u);其中gitkitClient' is my GitKit client, already initialized with the right parameters, andlocalId‘是我想要更新的用户的id。
此代码会导致以下异常:
org.json.JSONException: JSONObject["localId"] not found.很难找到这个库的文档。如果有人能给我提个建议,我会很高兴的。
发布于 2016-04-20 09:27:48
感谢您报告错误。一到两天内就能修好。
更新它是固定的。我手动测试和验证。也请使用最新版本的java库。您可以从here或maven更新中获得它。
https://stackoverflow.com/questions/36665417
复制相似问题