メインコンテンツまでスキップ

opensocial.DataResponse


メソッド​

opensocial.DataResponse.get​

opensocial.ResponseItem get(key)

リクエストされたフィールドの ResponseItem を取得します。

パラメータ​
名前型説明
keyStringキー
返り値​
型説明
opensocial.ResponseItemリクエストされた ResponseItem
サンプル​
var responseItem = data.get("req");

opensocial.DataResponse.getErrorMessage​

String getErrorMessage()

エラーが起きた場合にエラーメッセージを返します。

パラメータ​

なし

返り値​
型説明
Stringエラーメッセージ
サンプル​
var msg = data.getErrorMessage();

opensocial.DataResponse.hadError​

Boolean hadError()

エラーが起きた場合は true 、起きていない場合は falseを返します。

パラメータ​

なし

返り値​
型説明
Booleanエラーが起きているかどうか
サンプル​
if (data.hadError()) {
// ...
} else {
// ...
}

更新履歴​

  • 2013/03/15
    • ドキュメント移行