private string SubmitCustom(string root, Submit submit, Metadata metadata)
 {
     var postData = submit.ToUrlQuery() + "&" + metadata.ToUrlQuery();
     return RequestPost(root + "?" + postData, "");
 }
        private string SubmitCustom(string root, Submit submit, Metadata metadata)
        {
            var postData = submit.ToUrlQuery() + "&" + metadata.ToUrlQuery();

            return(RequestPost(root, postData, ""));
        }
 /// <summary>
 /// Runs a Submit input against the specified Factual table.
 /// </summary>
 /// <param name="tableName">the name of the table you wish to submit updates for (e.g., "places")</param>
 /// <param name="factualId">the factual id on which the submit is run</param>
 /// <param name="submit">the submit parameters to run against table</param>
 /// <param name="metadata">the metadata to send with information on this request</param>
 /// <returns>the response of running submit against Factual.</returns>
 public string Submit(string tableName, string factualId, Submit submit, Metadata metadata)
 {
     return SubmitCustom("t/" + tableName + "/" + factualId + "/submit", submit, metadata);
 }
 /// <summary>
 /// Runs a Submit input against the specified Factual table.
 /// </summary>
 /// <param name="tableName">the name of the table you wish to submit updates for (e.g., "places")</param>
 /// <param name="factualId">the factual id on which the submit is run</param>
 /// <param name="submit">the submit parameters to run against table</param>
 /// <param name="metadata">the metadata to send with information on this request</param>
 /// <returns>the response of running submit against Factual.</returns>
 public string Submit(string tableName, string factualId, Submit submit, Metadata metadata)
 {
     return(SubmitCustom("t/" + tableName + "/" + factualId + "/submit", submit, metadata));
 }