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

SOAP Response
    <IdUser>26589</IdUser >
  </ IdUsers >
</GetIdUserResult > 

Code Examples

# Refer to for gem information.
require 'mailup'
m ='api-username', 'api-password')
# Returns XML response
# => "<GetIdUserResult><errorCode>0</errorCode><errorDescription></errorDescription><IdUsers> ... </IdUsers></GetIdUserResult>"