Movedigital.auth.startSession

From MoveDigital Docs

Authentication must occur before you can use MoveDigital's services. With startSession you send the username and password and in return receive a userid, sessionid and session. For all successive calls you then pass the userid, sessionid and session to show that you are properly authenticated.

Table of contents

Arguments

Authentication is POSTed to https://secure.movedigital.com/services/rest/ and should include the following arguments

  • method (required) - Must be set to: movedigital.auth.startSession
  • username (required) - The username of the MoveDigital account.
  • password (required) - The password for this account.

Example Responses

  • Success
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
	<method>movedigital.auth.startSession</method>
	<format>rest</format>
	<userid>20</userid>
	<sessionid>12345</sessionid>
	<session>7234928734927349273492783497293</session>
	<messages>
		<message msg="Successfully signed in." />
	</messages>
</rsp>
  • Error
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
	<method>movedigital.auth.startSession</method>
	<errors>
		<error code="99" msg="Failed to sign in." />
	</errors>
</rsp>

Error Codes

  • 98 - Insufficient permissions.
  • 99 - User not signed in.
  • 108 - Internal error.
  • 109 - Service is currently unavailable.
  • 111 - Method must be accessed via SSL.

Live REST Demo

Navigation