Class SurveysLandingPageClient
public class SurveysLandingPageClient
- Inheritance
-
SurveysLandingPageClient
- Inherited Members
Constructors
SurveysLandingPageClient(string, HttpClient)
public SurveysLandingPageClient(string baseUrl, HttpClient httpClient)
Parameters
baseUrlstringhttpClientHttpClient
Properties
BaseUrl
public string BaseUrl { get; set; }
Property Value
JsonSerializerSettings
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
- JsonSerializerSettings
ReadResponseAsString
public bool ReadResponseAsString { get; set; }
Property Value
Methods
GetExportLandingPageAsync(string, CancellationToken)
Exports a landing page zip file V2
public virtual Task<LandingPageExportStatusResponseModel> GetExportLandingPageAsync(string surveyId, CancellationToken cancellationToken = default)
Parameters
surveyIdstringid of the survey
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<LandingPageExportStatusResponseModel>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
PostImportLandingPageAsync(string, FileParameter, CancellationToken)
Uploads a landing page zip file V2
public virtual Task<LandingPageUploadStatusResponseModel> PostImportLandingPageAsync(string surveyId, FileParameter file = null, CancellationToken cancellationToken = default)
Parameters
surveyIdstringid of the survey
fileFileParametercancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<LandingPageUploadStatusResponseModel>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysLandingPageClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T