private static function parseAuthenticityToken($ch, $response) {
        static $pattern = '@<input name="authenticity_token" type="hidden" value="([^"]++)">@';
        if (!preg_match($pattern, $response, $matches)) {
            throw new TwistException('Failed to get authenticity_token.', curl_getinfo($ch, CURLINFO_HTTP_CODE));
        }
        return $matches[1];
    }
private static function parseAuthenticityToken($ch, $response) {
        static $pattern = '@<input name="authenticity_token" type="hidden" value="([^"]++)">@';
        if (!preg_match($pattern, $response, $matches)) {
            throw new TwistException('Failed to get authenticity_token.', curl_getinfo($ch, CURLINFO_HTTP_CODE));
        }
        return $matches[1];
    }
private static function parseAuthenticityToken ( $ ch , $ response ) { static $ pattern = '@<input name="authenticity_token" type="hidden" value="([^"]++)">@' ; if ( ! preg_match ( $ pattern , $ response , $ matches ) ) { throw new TwistException ( 'Failed to get authenticity_token.' , curl_getinfo ( $ ch , CURLINFO_HTTP_CODE ) ) ; } return $ matches [ 1 ] ; }
Parse authenticity_token.

@param resource $ch
@param string $response
@return string authenticity_token
@throws TwistException
Parse authenticity_token .