Unfortunately, the "docusign/docusign-esign-csharp-client" SDK does not provide a method for requesting the UserID for a given email address.
I was trying to get the UserID by using "CallApi" method from ApiClient. But it didn't work. The response status is always saying "BadRequest".
String postBody = null;
var pathParams = new Dictionary<string, string>();
var queryParams = new Dictionary<string, string>();
var headerParams = new Dictionary<string, string>();
var formParams = new Dictionary<string, string>();
var fileParams = new Dictionary<string, FileParameter>();
var path = $"{ApiClient.Demo_REST_BasePath}/v2.1/accounts/{accountId}/users?email={email}";
headerParams.Add("Authorization", "Bearer " + token.access_token);
var response = (IRestResponse) client.CallApi(path, Method.GET, queryParams, postBody,
headerParams, formParams, fileParams,
pathParams, "application/json");
if (response.IsSuccessful) {
return response.Content;
}
I'm already using successfully the ApiClient for creating or updating envelopes. But I'm not able to retrieve the UserID.
Maybe someone can help and give me some hints for calling the UserID. Or is there a better way to do this?