Movedigital.torrents.createTorrent

From MoveDigital Docs

Table of contents

Arguments

Calls are POSTed to http://www.movedigital.com/services/rest/ and should include the following arguments

  • method (required) - Must be set to: movedigital.torrents.createTorrent
  • userid (required) - The userid of the MoveDigital account.
  • sessionid (required) - The sessionid for the current session.
  • session (required) - The current session value for this sessionid.
  • contentid (required) - The id of the folder or of the file upon which you wish to create a torrent.

Example Responses

  • Success
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
	<method>movedigital.torrents.createTorrent</method>
	<format>rest</format>
	<torrentid>1451</torrentid>
	<torrenturl>http://download.movedigital.com/lerhaupt/t1234/foo-test.torrent</torrenturl>
	<messages>
		<message msg="Successfully created your torrent." />
	</messages>
</rsp>
  • Error
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
	<method>movedigital.torrents.createTorrent</method>
	<errors>
		<error code="98" msg="Sorry, you are not able to create a torrent on your uploads folder." />
	</errors>
</rsp>

Error Codes

  • 84 - Folder not found.
  • 89 - Bandwidth quota exceeded.
  • 90 - Failed to start/stop hosting.
  • 91 - Folder is empty.
  • 92 - Torrent already exists.
  • 98 - Insufficient permissions.
  • 99 - User not signed in.
  • 106 - Some data was missing or invalid.
  • 108 - Internal error.
  • 109 - Service is currently unavailable.

Live REST Demo

Navigation