/// <summary> /// Gets information about the NPS user surveys. This API is exposed as part of /// our efforts to make all personal data accessible. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <NPSSurveyResponse> > GetAsync(this INpsSurvey operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets information about the NPS user surveys. This API is exposed as part of /// our efforts to make all personal data accessible. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <NPSSurveyResponse> Get(this INpsSurvey operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }