def find_suggestions(self,latitude,longitude): print "FUNCTION: Process.find_suggestions" Logger.log_writer("FUNCTION: Process.find_suggestions") foursquareAPI = FourSquare(latitude,longitude) output = foursquareAPI.req() print output print self.upload_XMLobject(output)
#!/usr/bin/env python import common from foursquare import FourSquare if __name__ == '__main__': # replace with your email address or phone number, and # password. foursquare = FourSquare('*****@*****.**', 'password') # for debugging #foursquare.set_api_host('http://some.other.host') response = foursquare.get_userinfo(userid='REPLACE_THIS_NUMERIC_ID') print response.read()
#!/usr/bin/env python import common from foursquare import FourSquare if __name__ == '__main__': # replace with your email address or phone number, and # password. You can also omit the credentials, so long as # you pass authenticate=False to foursquare.search() foursquare = FourSquare('*****@*****.**', 'password') latitude = '21.396819' longitude = '-157.928467' # foursquare defaults to 30 if no limit is passed. response = foursquare.search(latitude, longitude, authenticate = False, limit = 10, query = 'pizza') print response.read()
#!/usr/bin/env python import common from foursquare import FourSquare if __name__ == '__main__': # replace with your email address or phone number, and # password. foursquare = FourSquare('*****@*****.**', 'password') response = foursquare.get_checkins() print response.read()