public List <IbisPerson> Search(string query, bool approxMatches, bool includeCancelled, string misStatus, string attributes, int offset, int limit, string orderBy, string fetch) { string[] pathParams = { }; object[] queryParams = { "query", query, "approxMatches", approxMatches, "includeCancelled", includeCancelled, "misStatus", misStatus, "attributes", attributes, "offset", offset, "limit", limit, "orderBy", orderBy, "fetch", fetch }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/person/search", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.ToString()); } return(result.people); }
public List <IbisInstitution> GetInsts(string identifier, string fetch, string scheme = "crsid") { string[] pathParams = { scheme, identifier }; object[] queryParams = { "fetch", fetch }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/person/{0}/{1}/insts", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.message); } return(result.institutions); }
public List <IbisAttribute> GetAttributes(string identifier, string attrs, string scheme = "crsid") { string[] pathParams = { scheme, identifier }; object[] queryParams = { "attrs", attrs }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/person/{0}/{1}/get-attributes", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.message); } return(result.attributes); }
public bool IsMemberOfInst(string identifier, string instid, string scheme = "crsid") { string[] pathParams = { scheme, identifier, instid }; object[] queryParams = { }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/person/{0}/{1}/is-member-of-inst/{2}", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.message); } return(bool.Parse(result.value)); }
public List <IbisPerson> GetMembers(string instid, string fetch) { string[] pathParams = { instid }; object[] queryParams = { "fetch", fetch }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/inst/{0}/members", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.ToString()); } return(result.people); }
public IbisAttribute GetAttribute(string instid, long attrid) { string[] pathParams = { instid, "" + attrid }; object[] queryParams = { }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/inst/{0}/{1}", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.ToString()); } return(result.attribute); }
public List <IbisGroup> GetGroups(string instid) { string[] pathParams = { instid }; object[] queryParams = { "fetch", "inst_groups" }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/inst/{0}", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.ToString()); } return(result.institution.groups); }
public IbisInstitution GetInst(string instid, string fetch) { string[] pathParams = { instid }; object[] queryParams = { "fetch", fetch }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/inst/{0}", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.ToString()); } return(result.institution); }
public List <IbisInstitution> AllInsts(bool includeCancelled, string fetch) { string[] pathParams = { }; object[] queryParams = { "includeCancelled", includeCancelled, "fetch", fetch }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/inst/all-insts", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.ToString()); } return(result.institutions); }
public IbisGroup GetGroup(string groupid, string fetch) { string[] pathParams = { groupid }; object[] queryParams = { "fetch", fetch }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/group/{0}", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.ToString()); } return(result.group); }
public byte[] GetPhotoBytes(string instid) { string[] pathParams = { instid }; object[] queryParams = { "attrs", "jpegPhoto" }; object[] formParams = { }; IbisResult result = _ls.InvokeMethod("api/v1/inst/{0}/get-attributes", pathParams, queryParams, formParams); if (result.error != null) { throw new Exception(result.error.ToString()); } return(result.attribute.binaryData); }