コード例 #1
0
ファイル: Action.php プロジェクト: ArcherCraftStore/Anasazi
 public static function run($id, $attribs = array())
 {
     $response = GameRocket_Http::post('/games/' . GameRocket_Configuration::apikey() . '/actions/' . $id . '/run', $attribs);
     if (isset($response['error'])) {
         return new GameRocket_Result_Error($response);
     } else {
         return new GameRocket_Result_Successful(GameRocket_Map::factory($response));
     }
 }
コード例 #2
0
ファイル: Player.php プロジェクト: ArcherCraftStore/Anasazi
 private static function _doCreate($url, $params)
 {
     $response = GameRocket_Http::post($url, $params);
     return self::_verifyGatewayResponse($response);
 }