Exemple #1
0
        /// <summary>
        /// Get notary jurisdictions for a user
        /// </summary>
        /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>


        /// <param name="options">Options for modifying the behavior of the function.</param>
        /// <returns>Task of NotaryJournalList</returns>
        public async System.Threading.Tasks.Task <NotaryJournalList> ListNotaryJournalsAsync(NotaryApi.ListNotaryJournalsOptions options = null)
        {
            ApiResponse <NotaryJournalList> localVarResponse = await ListNotaryJournalsAsyncWithHttpInfo(options);

            return(localVarResponse.Data);
        }
Exemple #2
0
        /// <summary>
        /// Get notary jurisdictions for a user
        /// </summary>
        /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>


        /// <param name="options">Options for modifying the behavior of the function.</param>
        /// <returns>Task of ApiResponse (NotaryJournalList)</returns>
        public async System.Threading.Tasks.Task <ApiResponse <NotaryJournalList> > ListNotaryJournalsAsyncWithHttpInfo(NotaryApi.ListNotaryJournalsOptions options = null)
        {
            var    localVarPath         = "/v2/current_user/notary/journals";
            var    localVarPathParams   = new Dictionary <String, String>();
            var    localVarQueryParams  = new Dictionary <String, String>();
            var    localVarHeaderParams = new Dictionary <String, String>(Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <String, String>();
            var    localVarFileParams   = new Dictionary <String, FileParameter>();
            Object localVarPostBody     = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
            };
            String localVarHttpContentType    = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json"
            };
            String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            // set "format" to json by default
            // e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
            localVarPathParams.Add("format", "json");

            if (options != null)
            {
                if (options.count != null)
                {
                    localVarQueryParams.Add("count", Configuration.ApiClient.ParameterToString(options.count));                        // query parameter
                }
                if (options.searchText != null)
                {
                    localVarQueryParams.Add("search_text", Configuration.ApiClient.ParameterToString(options.searchText));                             // query parameter
                }
                if (options.startPosition != null)
                {
                    localVarQueryParams.Add("start_position", Configuration.ApiClient.ParameterToString(options.startPosition));                                // query parameter
                }
            }



            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                       Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                       localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("ListNotaryJournals", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <NotaryJournalList>(localVarStatusCode,
                                                       localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                                                       (NotaryJournalList)Configuration.ApiClient.Deserialize(localVarResponse, typeof(NotaryJournalList))));
        }
Exemple #3
0
        /// <summary>
        /// Get notary jurisdictions for a user
        /// </summary>
        /// <exception cref="DocuSign.eSign.Client.ApiException">Thrown when fails to make API call</exception>


        /// <param name="options">Options for modifying the behavior of the function.</param>
        /// <returns>NotaryJournalList</returns>
        public NotaryJournalList ListNotaryJournals(NotaryApi.ListNotaryJournalsOptions options = null)
        {
            ApiResponse <NotaryJournalList> localVarResponse = ListNotaryJournalsWithHttpInfo(options);

            return(localVarResponse.Data);
        }