Versions Compared

Key

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

...

nometa (optional)
Set parameter to true (JSON shares only) to return the share itself in the "data" field of the reply, rather than the database object consisting of share metadata with the share itself encoded as a string in the "data.share" field.

filename(optional)
if you are returning the content of a binary share, will name the download what you pass in here (e.g. my_file.txt)

Example

http://infinite.ikanow.com/api/social/share/get/4e175bfeb8ed6403f48ea7e2
http://infinite.ikanow.com/api/social/share/get/4e175bfeb8ed6403f48ea7e2?nocontent=true
http://infinite.ikanow.com/api/social/share/get/4e175bfeb8ed6403f48ea7e2?filename=my_file.txt

Example Response
Info
Code Block
{
	response: 
	{
		action: "Share"
		success: true
		message: "Share returned successfully"
		time: 41
	}
	data: 
	{
		_id: "4e175bfeb8ed6403f48ea7e2"
		created: "Jul 8, 2011 11:35:26 AM"
		modified: "Jul 10, 2011 9:27:36 AM"
		owner: 
		{
			_id: "4d88d0f1f9a624a4b0c8bd71"
			email: "jdoe@ikanow.com"
			displayName: "John Doe"
		}
		type: "test"
		title: "Test Share"
		description: "Just a test of share functionality"
		share: "random stuff that gets put in share"
		communities: [
			{
				_id: "4d88d0f1f9a624a4b0c8bd71"
				name: "John Doe's Personal Community"
			}
 			{
				_id: "4c927585d591d31d7b37097a"
				name: "Infinit.e System"
				comment: "Share with everyone!"
			}
		]
	}
}