Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method parameters

Allows to duplicate a message in MailUp.

  • int CloneMessage(string accessKey, string listId, string listGuid, int messageToCloneId, string subject)

...

  • Nel primo caso la lista è verificata utilizzando entrambi i parametri.
  • Nel secondo caso utilizzando il parametro fornito.

...

  • l'identificativo numerico del messaggio clonato.
  • -1 in caso l'operazione non può essere portata a buon fine (ad esempio parametri errati o problemi di sistema).

Il metodo CloneMessage esegue in modo sincrono i seguenti passi:

  1. Clonazione dei dati di un Messaggio in MailUp
  2. Restituzione al chiamante dell'identificativo del Messaggio.

...

  • accessKey: chiave di accesso ottenuta chiamando il metodo Login.
  • listId: : Identificativo numerico che individua univocamente una Lista di MailUp.
  • listGuid: GUID che individua univocamente una Lista di MailUp.
  • messageToCloneId: Identificativo numerico del messaggio che si vuole clonare.
  • subject: Soggetto del messaggio clonato. Se null o vuoto sarà utilizzato il soggetto originale del messaggio origine.

...

  •  access key obtained using the Login method
  • listId: list identifier
  • listGuid: GUID of the list in MailUp 
  • messageToCloneId: ID of the message to be cloned
  • subject: subject of the cloned message. If null or empty, the subject will be the same as the original message


Parameters listGuid e listId can be used together or alternatively, passing one of them as null or empty: in the first case the list is verified using both parameters, otherwise using only the provided parameter.

The method returns:

  • the ID of the cloned message
  • "-1" if the operation is not completed successfully (e.g. for incorrect parameters or system failure).

CloneMessage method synchronously executes the following steps:

  1. Clonation of the data contained in the MailUp message
  2. Return to the caller of the message ID.


CloneMessage method asynchronously executes a copy of the files of the message to be cloned.