Inheritance: AlchemyAPI.AlchemyAPI_BaseParams
コード例 #1
0
ファイル: AlchemyAPI.cs プロジェクト: m2pathan/SemantAPI
        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
ファイル: AlchemyAPI.cs プロジェクト: m2pathan/SemantAPI
        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));
        }