Smartsheet.Api.Internal.UserResourcesImpl.ListAlternateEmails C# (CSharp) Method

ListAlternateEmails() public method

List all user alternate email(s).

It mirrors to the following Smartsheet REST API method: GET /users/{userId}/alternateemails

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public ListAlternateEmails ( long userId, PaginationParameters pagination ) : PaginatedResult
userId long the Id of the user
pagination PaginationParameters the pagination
return PaginatedResult
        public PaginatedResult<AlternateEmail> ListAlternateEmails(long userId, PaginationParameters pagination)
        {
            StringBuilder path = new StringBuilder("users/" + userId + "/alternateemails");

            IDictionary<string, string> parameters = new Dictionary<string,string>();

            if (pagination != null)
            {
                parameters = pagination.toDictionary();
            }
            path.Append(QueryUtil.GenerateUrl(null, parameters));

            return this.ListResourcesWithWrapper<AlternateEmail>(path.ToString());
        }