Наследование: AlchemyAPI.AlchemyAPI_BaseParams
Пример #1
0
        public string URLGetConstraintQuery(string url, AlchemyAPI_ConstraintQueryParams parameters)
        {
            CheckURL(url);
            if (parameters.getCQuery().Length < 2)
            {
                System.ApplicationException ex =
                    new System.ApplicationException("Invalid constraint query specified.");

                throw ex;
            }

            parameters.setUrl(url);

            return(POST("URLGetConstraintQuery", "url", parameters));
        }
Пример #2
0
        public string HTMLGetConstraintQuery(string html, string url, AlchemyAPI_ConstraintQueryParams parameters)
        {
            CheckHTML(html, url);
            if (parameters.getCQuery().Length < 2)
            {
                System.ApplicationException ex =
                    new System.ApplicationException("Invalid constraint query specified.");

                throw ex;
            }

            parameters.setHtml(html);
            parameters.setUrl(url);

            return POST("HTMLGetConstraintQuery", "html", parameters);
        }
Пример #3
0
        public string HTMLGetConstraintQuery(string html, string url, string query)
        {
            CheckHTML(html, url);
            if (query.Length < 2)
            {
                System.ApplicationException ex =
                    new System.ApplicationException("Invalid constraint query specified.");

                throw ex;
            }

            AlchemyAPI_ConstraintQueryParams cqParams = new AlchemyAPI_ConstraintQueryParams();
            cqParams.setCQuery(query);

            return HTMLGetConstraintQuery(html, url, cqParams);
        }
Пример #4
0
        public string HTMLGetConstraintQuery(string html, string url, string query)
        {
            CheckHTML(html, url);
            if (query.Length < 2)
            {
                System.ApplicationException ex =
                    new System.ApplicationException("Invalid constraint query specified.");

                throw ex;
            }

            AlchemyAPI_ConstraintQueryParams cqParams = new AlchemyAPI_ConstraintQueryParams();

            cqParams.setCQuery(query);

            return(HTMLGetConstraintQuery(html, url, cqParams));
        }