/**
  * 给api添加其它节点参数
  *
  * @params string node_id 节点id
  * @params string api api的path
  * @params string data json数据
  *
  * @return bool true
  */
 public function nodeAdd($params)
 {
     PrismLibCheckUtil::checkNotNull($params['node_id'], 'node_id');
     PrismLibCheckUtil::checkNotNull($params['api'], 'api');
     PrismLibCheckUtil::checkNotNull($params['data'], 'data');
     return $this->callPrismApi('/api/platform/manageapi/node/add', null, 'get');
 }
 public function getList($params)
 {
     PrismLibCheckUtil::checkNotNull($params['app_id'], 'app_id');
     return $this->callPrismApi('/api/platform/key/list', $params, 'post');
 }
 /**
  * 查询app的信息
  *
  * @param string app_id 要查询的app id
  *
  * @return "ApiJsonUrl": "",
  * @return "AuthGroup": "",
  * @return "Author": "",
  * @return "AuthorUrl": "",
  * @return "CreateTime": "2015-05-08T15:27:51.368482262+08:00",
  * @return "DomainId": "default",
  * @return "Guid": "default-vt6kk6p",
  * @return "Id": "vt6kk6p",
  * @return "KeysNum": 0,
  * @return "Logo": "",
  * @return "MaxKeysLimit": 500,
  * @return "MemberId": "g3tearm2",
  * @return "Meta": {},
  * @return "Name": "cc",
  * @return "NotifyListen": null,
  * @return "NotifyPublish": null,
  * @return "SelfBinding": false,
  * @return "Status": "",
  * @return "Summary": ""
  */
 public function info($params)
 {
     PrismLibCheckUtil::checkNotNull($params['app_id'], 'app_id');
     return $this->callPrismApi('/api/platform/app/info/' . $params['app_id'], $params, 'get');
 }
 /**
  * 更新api
  *
  * @param string url prism可以请求到的url,这个url返回一个prism标准的json
  *
  * @return bool true
  */
 public function refresh($params)
 {
     PrismLibCheckUtil::checkNotNull($params['url'], 'url');
     return $this->callPrismApi('/api/platform/service/refresh', $params, 'post');
 }
 /**
  * 查询用户资料
  *
  * @params string email 用户的邮箱
  *
  * @return Guid
  * @return Key
  * @return Secret
  * @return ClientID
  * @return Notes
  * @return DomainID
  * @return Meta
  * @return CreateTime
  * @return Expired
  * @return NotifyPushUrl
  */
 public function info($params)
 {
     PrismLibCheckUtil::checkNotNull($params['email'], 'email');
     return $this->callPrismApi('/api/platform/manageuser/info/' . $params['email'], $params, 'get');
 }