HugoWang / AnswerBot

1 stars 0 forks source link

Send request to server #4

Open feilz opened 8 years ago

feilz commented 8 years ago

Create a function, that takes as an argument a list, which is the data, and an identifier, turns it into JSON, and uses the correct URL to post it to the server.

feilz commented 8 years ago

The idea is that all data we send to the server is done through this function.

feilz commented 8 years ago

and returns the servers response. The appropriate movement inside the application is handled outside this function