Restituisce l'Identificativo numerico dell'utente che ha eseguito il Login
string GetIdUser(string accessKey)
accessKey: chiave di accesso ottenuta chiamando il metodo Login
Se il codice di errore è 0, il messaggio conterrà l'identificativo numerico dell'utente.
Esempio di messaggio GetIdUserResult:
<GetIdUserResult>
<errorCode>0</errorCode>
<errorDescription></errorDescription>
<IdUsers>
<IdUser>1</IdUser >
</ IdUsers >
</GetIdUserResult > Returns the identifier of the user who performed a Login. You should use this method to retrieve the ID that is requested by WS_MailUpManage.GetListsUser method.
Method parameters
- string GetIdUser(string accessKey)
- accessKey: access key obtained using the LoginFromId method
If error code=0, the message will contain the user ID.
SOAP Example
Code Block |
---|
language | html/xml |
---|
title | SOAP Response |
---|
firstline | 1 |
---|
linenumbers | true |
---|
|
<GetIdUserResult>
<errorCode>0</errorCode>
<errorDescription></errorDescription>
<IdUsers>
<IdUser>26589</IdUser >
</ IdUsers >
</GetIdUserResult > |
Code Examples
Code Block |
---|
|
# Refer to https://mailup.atlassian.net/wiki/display/mailupapi/MailUp+RubyGem for gem information.
require 'mailup'
m = MailUp::Manage.new('api-username', 'api-password')
m.get_id_user
# Returns XML response
# => "<GetIdUserResult><errorCode>0</errorCode><errorDescription></errorDescription><IdUsers> ... </IdUsers></GetIdUserResult>" |