-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Expects parameters:
- lat: Latitude
- lon: Longitude
Gets a list of Foursquare venues given a lat/long pair. Returns them in a JSON format with the fields:
- name: venue name
- id: Foursquare venue ID
- lat: Latitude of venue
- lng: Longitude of venue
- hereNow: Number of users currently checked in at the venue
Expects parameters:
- lat: Latitude
- lon: Longitude
- term : Search term
Gets a list of Foursquare venues given a lat/long pair and a search term. Returns them in a JSON format with the fields:
- name: venue name
- id: Foursquare venue ID
- lat: Latitude of venue
- lng: Longitude of venue
- hereNow: Number of users currently checked in at the venue
POST, takes inputs:
- location
- price (this is stored as text for some reason. blame tim
- status (I do not know what a status is. blame tim
- userId (blame tim for the weirdo capitalisation)
returns [{'status':'success', 'hash':<your-shitty-hash-here>}]
GET, takes inputs:
- by: currently takes
hash
orrecent
. withhash
, you feed it a hash, hopefully previously returned by a call toadd_listing
. withrecent
, you pass an additional inputuntil
. - hash: only pass if
by=hash
. should be obvious. - until: only pass if
by=recent
. indicates how many hours into the past you want to retrieve listings from.
GET, takes no inputs (as of now. may be redesigned to do fancier stuff. returns a priority queue (https://npmjs.org/package/priorityqueuejs).
GET, sends an SMS to a number. Maximum 75 per IP address per day. Takes inputs:
- number (the phone number to SMS to)
GET, sends an email. Takes inputs:
- email (the recipient's email address)
GET, just prints out all the chat messages in the database. Used for debugging. Takes no inputs.
GET, gets the chats between 2 people from a specified ID and newer. Takes inputs:
- from (the ID of the person sending the message)
- to (the ID of the person receiving the message)
- lastID (the ID of the last message that the client currently has)
POST, updates chat when the user sends a message. Takes inputs:
- from (the ID of the person sending the message)
- to (the ID of the person receiving the message)
- msg (the message sent)