mLewisLogic/foursquare — pull request #1 by beichhor (2012-03-27 23:59:59+00:00)
Title: Added multi request handling

Hi Mike, I wanted to get your thoughts and suggestions on my multi implementation.

```python

client = foursquare.Foursquare(client_id='YOUR_CLIENT_ID', client_secret='YOUR_CLIENT_SECRET')
client.venues('40a55d80f964a52020f31ee3', multi=True)
client.venues.search(params={'query': 'coffee'}, multi=True)
client.venues.search(params={'ll': '-33,150', 'radius': 1000}, multi=True)
# ... add as many requests as you like (they are retrieved in baches of 5 as per api spec)

while client.multi.has_remaining:
try:
response = client.multi.next()
except foursquare.FoursquareException, e:
print e
continue
if 'venues' in response:
print response['venues']

```