self.assertEqual(twitter_hq[0].id, '3bdf30ed8b201f31')
# Test various API functions using Austin, TX, USA
self.assertEqual(self.api.geo_id(id='c3f37afa9efcf94b').full_name, 'Austin, TX')
- self.assertTrue(place_name_in_list('Austin, TX',
- self.api.nearby_places(lat=30.267370168467806, long= -97.74261474609375))) # Austin, TX, USA
self.assertTrue(place_name_in_list('Austin, TX',
self.api.reverse_geocode(lat=30.267370168467806, long= -97.74261474609375))) # Austin, TX, USA
allowed_param = ['lat', 'long', 'accuracy', 'granularity', 'max_results']
)
- """ geo/nearby_places """
- # listed as deprecated on twitter's API documents
- nearby_places = bind_api(
- path = '/geo/nearby_places.json',
- payload_type = 'place', payload_list = True,
- allowed_param = ['lat', 'long', 'ip', 'accuracy', 'granularity', 'max_results']
- )
-
""" geo/id """
geo_id = bind_api(
path = '/geo/id/{id}.json',