Request Responses

All requests will respond with, at the least, an Integer value for success. This value is either 1 or 0 to represent if the request was processed correctly or not. All requests will also return a String value for error and warnings. These will - most likely - be blank if you have a success value of 1. However, it is possible to have warnings if your uploaded data, for example, had to be truncated to the appropriate length.

Responses involving media will always be within an array titled medias - if you are expecting only one result, you can simply read the first object from that array - however you should always check to make sure there is only one result when performing a query that could have multiple results rather than simply assume a single result.

Example JSON Response


{
	"success":1,
	"error":"",
	"warnings":"",
	"medias":[
		{
			"hash":"abc123def",
			"type":"video",
			"status_code":"400",
			"status_message":"Ready.",
			"title":"Test Video",
			"description":null,
			"keywords":null,
			"customid":null,
			"storage_size":"11094",
			"original_http_url":"http:\/\/username.cdn-original-http.framesocket.com\/",
			"original":"original_abc123def.mov",
			"image": {
				"hash":"qwe456rty",
				"http_url":"http:\/\/username.cdn-image-http.framesocket.com\/",
				"square":"abc123def_qwe456rty_square.jpg",
				"thumbnail":"abc123def_qwe456rty_thumbnail.jpg",
				"small":"abc123def_qwe456rty_small.jpg",
				"medium":"abc123def_qwe456rty_medium.jpg",
				"large":null,
				"storage_size":"132"
			},
			"video":{
				"hash":"pwn789age",
				"http_url":"http:\/\/username.cdn-video-http.framesocket.com\/",
				"rtmp_url":"rtmp:\/\/username.cdn-video-rtmp.framesocket.com\/",
				"v270p":"abc123def_pwn789age_270p.mp4",
				"v360p":"abc123def_pwn789age_360p.mp4",
				"v480p":"abc123def_pwn789age_480p.mp4",
				"v720p":"abc123def_pwn789age_720p.mp4",
				"v1080p":null,
				"storage_size":"9797"
			}
		}
	
	]
}
		
Have a question? We are currently: