Versions Compared

Key

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

Method parameters

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
languagehtml/xml
titleSOAP Response
firstline1
linenumberstrue
<GetIdUserResult>
  <errorCode>0</errorCode>
  <errorDescription></errorDescription>
  <IdUsers>
    <IdUser>1</IdUser >
  </ IdUsers >
</GetIdUserResult > 

Code Examples

Code Block
languageruby
titleRuby
# 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>"

...