Assistance with REST api code to Authenticate Signers
Thursday, July 14, 2016 at 04:11pmI am following the example in your blog to Authenticate a Signer: https://www.esignlive.com/blog/esignlive-how-to-authenticating-signers/
Here is what I have produced:
            var apiKey = CeremonyClient.GetKey();
            var urlBase = CeremonyClient.GetUrl();  // "https://sandbox.e-signlive.com/api"
            var json = authList.Aggregate("{\"auth\":{\"challenges\":[", (current, t) => current + ("{\"question\":" + t.Question + ",\"answer\":" + t.Answer + "},"));
            json += "],\"scheme\":\"CHALLENGE\"}";
            var jsonContent = new StringContent(json, Encoding.UTF8, "application/json");
            var form = new MultipartFormDataContent();
            form.Add(jsonContent, "\"payload\"");
            HttpClient myClient = new HttpClient();
            myClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", apiKey);
            myClient.DefaultRequestHeaders.Add("Accept", "application/json");
            var response = await myClient.PostAsync(new Uri(urlBase) + "/packages/", form);
            var responseBody = await response.Content.ReadAsStringAsync();
            return responseBody;
What I am not clear on is the uri for the Post statement.
Can you clarify for me ?
      
                                    
Reply to: Assistance with REST api code to Authenticate Signers
Friday, July 15, 2016 at 03:23amReply to: Assistance with REST api code to Authenticate Signers
Friday, July 15, 2016 at 09:23amReply to: Assistance with REST api code to Authenticate Signers
Sunday, July 17, 2016 at 05:01pmReply to: Assistance with REST api code to Authenticate Signers
Monday, July 18, 2016 at 03:55am