Ejemplo n.º 1
0
        public string CreatePersonDocument(string documentJson)
        {
            var          url     = apiUrl + "/entities/personDocument";
            eRestRequest request = new eRestRequest(url, authToken, eRestRequestTypes.POST, documentJson);

            return(eRestClient.SubmitRequest(request));
        }
Ejemplo n.º 2
0
        public string CreateCaseWithParty(string caseJson)
        {
            var          url     = apiUrl + "/entities/case";
            eRestRequest request = new eRestRequest(url, authToken, eRestRequestTypes.POST, caseJson);

            return(eRestClient.SubmitRequest(request));
        }
Ejemplo n.º 3
0
        public string UploadPersonDocument(string documentID, string filePath)
        {
            var          url     = apiUrl + "/upload/personDocument/" + documentID;
            eRestRequest request = new eRestRequest(url, authToken, eRestRequestTypes.POST);

            request.FilePathToUpload = filePath;
            return(eRestClient.SubmitRequest(request));
        }
Ejemplo n.º 4
0
        public string GetPersonsFromPersonSource(int?personSource)
        {
            if (personSource != null)
            {
                var          url     = apiUrl + "/search/person/personSource/" + personSource;
                eRestRequest request = new eRestRequest(url, authToken);
                var          result  = eRestClient.SubmitRequest(request);

                return(result);
            }
            return(null);
        }
Ejemplo n.º 5
0
        public bool TestConnection()
        {
            var          url     = apiUrl + "/entities";
            eRestRequest request = new eRestRequest(url, authToken);

            try
            {
                var result = eRestClient.SubmitRequest(request);
                if (result != null)
                {
                    return(true);
                }
            } catch (Exception e)
            {
                throw e;
            }

            return(false);
        }