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)); } }
private static function _doCreate($url, $params) { $response = GameRocket_Http::post($url, $params); return self::_verifyGatewayResponse($response); }