Exemple #1
0
        public virtual void TestSendRow()
        {
            server.setResponseBody("../../../TestSDK/resources/sendRow.json");

            RowEmail       email = new RowEmail();
            IList <string> to    = new List <string>();

            to.Add("*****@*****.**");
            email.To                 = to;
            email.Message            = "Test Message";
            email.Subject            = "Test Subject";
            email.IncludeAttachments = true;
            email.IncludeDiscussions = true;
            email.CCMe               = true;
            rowResourcesImpl.SendRow(1234L, email);
        }
Exemple #2
0
 /// <summary>
 /// Send a row via Email To the designated recipients.
 ///
 /// It mirrors To the following Smartsheet REST API method: POST /row/{Id}/emails
 ///
 /// Exceptions:
 ///   IllegalArgumentException : if any argument is null
 ///   InvalidRequestException : if there is any problem with the REST API request
 ///   AuthorizationException : if there is any problem with the REST API authorization(access token)
 ///   ServiceUnavailableException : if the REST API service is not available (possibly due To rate limiting)
 ///   SmartsheetRestException : if there is any other REST API related error occurred during the operation
 ///   SmartsheetException : if there is any other error occurred during the operation
 /// </summary>
 /// <param name="id"> the Id of the row </param>
 /// <param name="email"> the row Email </param>
 /// <exception cref="SmartsheetException"> the Smartsheet exception </exception>
 public virtual void SendRow(long id, RowEmail email)
 {
     this.CreateResource("row/" + id + "/emails", typeof(RowEmail), email);
 }
 public virtual void SendRow(long sheetId, long rowId, RowEmail email)
 {
     throw new NotSupportedException();
 }