Here's the best way to get the last message sent to your Text2Page number

This example uses the jQuery framework. Documentation for jQuery AJAX methods can be found here. You can find your-account-key on the main Account page

	function loadSMS()
	{
		$.ajax({
			url: 'https://s3.amazonaws.com/text2page-sms/your-account-key.json?',
			dataType: 'jsonp',
			crossDomain: 'true',
			jsonpCallback: 'callbackyour-account-key', //yep, this one long string. No spaces!
			error: function(jqXHR, textStatus, errorThrown)
			{
				//A bug on our end? Let us know! Inspect the error variables for clues or share them with us
			},
			success: function(data)
			{
				//Success! The response object, data, will have two properties: a body and a unix timestamp
				console.log(body);
				console.log(timestamp);
			}
		});
	}