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

AddAlternateEmail() public method

Add alternate email(s).

It mirrors to the following Smartsheet REST API method: POST /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 AddAlternateEmail ( long userId, IEnumerable altEmails ) : IList
userId long the Id of the user
altEmails IEnumerable list of AlternateEmail(s)
return IList
        public IList<AlternateEmail> AddAlternateEmail(long userId, IEnumerable<AlternateEmail> altEmails)
        {
            Utility.Utility.ThrowIfNull(altEmails);

            return this.PostAndReceiveList<IEnumerable<AlternateEmail>,AlternateEmail>("users/" + userId + "/alternateemails", altEmails, typeof(AlternateEmail));
        }