Versions Compared

Key

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

...

C# code for Groups retrieval

Code Block
languagecsharp
linenumberstrue
it.mailupnet.services.MailupSend myService = 
new it new it.mailupnet.services.MailupSend();
string sstring s1 = myService.LoginLoginFromId(user, password, myURLmyConsoleID);
 
... //extract ricavoaccessKey l'elencovalue
dei gruupi definiti nella lista nr.1 string s  
string s2 = myService.GetGroups(accessKey, 1);// retrieving the defined groups for list 1
 
... if  //extract errorCode value from s2
 
if (errorCode == 0)
{
  // eseguo il parsing del messaggio di ritorno per ricavare l'elenco // dei gruppi definite nella lista indicata
} Enter here if call was successful
  // Then you can parse received response and extract groups that belong to the specified list
}