2017-03-03 4 views
0

service.users().updateでユーザーを更新しようとしています。 200の応答を返しますが、何も変更しません。Google AppsユーザーをPythonで更新する

results2 = service.users().update(
    userKey='116908937914240107065', 
    fields='id,name/fullName,primaryEmail', 
    body='{"primaryEmail":"[email protected]"}' 
    ).execute() 

print('id: {0} | Email: {1} | Nome: {2}'.format(results2['id'],results2['primaryEmail'], results2['name']['fullName'])) 
+0

これを解決Googleのバグ?? –

答えて

0

でしたか? ちょうど間 '' がなければ、なぜレスポンス= 200のコードに誤りがあった...

を不思議{ "primaryEmail": "[email protected]"}多分...

body={"primaryEmail":"[email protected]"} 
関連する問題