static private Obtain ( |
||
baseUri | ||
resourceIds | List |
|
args | object>.Dictionary | |
username | string | |
password | string | |
Résultat |
public ObtainResult ObtainDocsByResourceLocator(string locator, bool ids_only = false) { Dictionary <string, object> args = new Dictionary <string, object>(); if (ids_only) { args["ids_only"] = "true"; args["by_doc_ID"] = "true"; //we only want doc ids } return(LRUtils.Obtain(_baseUri, locator, args)); }
public lr_document ObtainDocByID(string docId) { Dictionary <string, object> args = new Dictionary <string, object>(); args["by_doc_ID"] = true; var result = LRUtils.Obtain(_baseUri, docId, args, this.Username, this.Password); if (result.documents.Count < 1) { throw new Exception("Document with id " + docId + " does not exist."); } return(result.documents[0].document[0]); }
protected override ResumableResult getPage() { return(LRUtils.Obtain(BaseUri, new List <string>(), _Args, HttpUsername, HttpPassword)); }