第8章 $fh.mbaas

$fh.mbaas(options, success, failure);

MBaaS サービスのエンドポイントを呼び出します。

サポートされるプラットフォーム

  • JavaScript SDK

    • Web Apps

詳細なバージョン情報については、Supported Configurations (英語) を参照してください。

8.1. 例

$fh.mbaas({
  "service": "db", //the MBaaS service name.
  "params": {}, //json object to send to the MBaaS service
  "timeout": 25000 // timeout value specified in milliseconds. Default: 60000 (60s)
}, function(res) {
  // Cloud call was successful. Alert the response
  alert('Got response from cloud:' + JSON.stringify(res));
}, function(msg,err) {
  // An error occured during the cloud call. Alert some debugging information
  alert('Cloud call failed with error message:' + msg + '. Error properties:' + JSON.stringify(err));
});