Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

C# code for message retrieval

Code Block
languagecsharp
linenumberstrue
it.mailupnet.services.MailupSend myService = 
new it new it.mailupnet.services.MailupSend();
string s = myService.Login

... // perform login by means of LoginFromId(user, password, myURL);... // ricavo l'elenco dei gruupi definiti nella lista nr.1 string s myConsoleID) method and obtain accessKey value
 
string s = myService.GetNewsletters(accessKey, 1);;... if  //Returns all that have been messages created within list 1
 
...//extract errorCode value from received response; 
 
if (errorCode == 0)
{
  // eseguo il parsing del messaggio di ritorno per ricavare l'elenco // delle newsletter definite nella lista indicata enter here if request was successful
  // then received response can be parsed to retrieve the messages that belong to specified list