NeoAPI/Batched Requests

< NeoAPI

This feature is not available yet

[edit] Why use batched call?

[edit] How to use?

To make batched API requests to Neoseeker...


In the following example, we are making two API calls in one batched request.

  1. Get my profile
  2. Get my friends

[edit] jQuery sample

Format each calls as Javascript objects and passed in as an array named calls.

$.ajax({
	url: 'http://api.neoseeker.com/batch/',
	data: {
		calls: [
			{method: 'GET', url: 'members/me/'},
			{method: 'GET', url: 'members/me/friends/'}
		]
	},
	type: 'GET',
	dataType: 'json',
	success: function(result) {
		// ... continue
	}
});
Last edited by ar_cat on 25 October 2011 at 10:00
This page has been accessed 442 times.