Movedigital.auth.checkSession

From MoveDigital Docs

Checking whether the current session is valid can be accomplished via this call. It is probably a good idea to call checkSession before attempting to upload a file via movedigital.upload.postFile to avoid uploading a large file only to find out that the current session is no longer valid.

Table of contents

Arguments

Session checking is POSTed to http://www.movedigital.com/services/rest/ and should include the following arguments.

  • method (required) - Must be set to: movedigital.auth.checkSession
  • userid (required) - The userid of the MoveDigital account.
  • sessionid (required) - The sessionid for the current session.
  • session (required) - The session value for the associated sessionid.

Example Responses

  • Success
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
	<method>movedigital.auth.checkSession</method>
	<format>rest</format>
	<messages>
		<message msg="User is signed in." />
	</messages>
</rsp>
  • Error
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
	<method>movedigital.auth.checkSession</method>
	<errors>
		<error code="99" msg="User is not signed in." />
	</errors>
</rsp>

Error Codes

  • 99 - User not signed in.
  • 108 - Internal error.
  • 109 - Service is currently unavailable.

Live REST Demo

Navigation