0
WebアプリケーションでYammer Login SDKを実装したばかりです。ログインしたら、私はこのコードをうまく利用者情報を見ることができます:Yammer SDK - ユーザー情報を取得する(JSONからPHPへ)
yam.getLoginStatus(
function(response) {
if (response.authResponse) {
console.log("logged in");
yam.platform.request({
url: "users/current.json", //this is one of many REST endpoints that are available
method: "GET",
data: { //use the data object literal to specify parameters, as documented in the REST API section of this developer site
"page": "2",
},
success: function (user) { //print message response information to the console
alert("The request was successful.");
console.dir(user);
},
error: function (user) {
alert("There was an error with the request.");
}
});
}
else {
alert("not logged in")
}
}
);
しかし、これが唯一の私のコンソールログでJSON「オブジェクト」としての私の情報が表示されます。 この情報をすべてMySQLデータベースにアップロードできるように、このGET情報にアクセスしたいと思います。これは私が私のコンソールログに情報を参照する方法である。
私は基本的に私はPHPでそれを使用することができますので、この情報にアクセスする必要があります。
「GET」情報?あなたはあなたの全体のHTTP要求応答を意味しますか? – hassan
@hassanはいそれは私が意味するものです – CharlotteOswald
'response'オブジェクト全体をあなたのコンソールに表示し、あなたの望む要素を選択してください。 – hassan