Skip to content

Instantly share code, notes, and snippets.

View erkanarslan's full-sized avatar

Erkan Arslan erkanarslan

View GitHub Profile

General API Structure

All request endpoint urls start with api/. Data is sent and received as JSON objects. All request data is sent in the request body if not specified otherwise. You should return 200 for success responses and any code that starts with 4 for error responses.

Date values should be sent and received as unix timestamps in milliseconds.

Websocket

All live data sent over websocket. We will have a single connection. Thus a data format is necessary to differentiate the data. This is the data format:

{

General API Structure

All request endpoint urls start with api/. Data is sent and received as JSON objects. All request data is sent in the request body if not specified otherwise. You should return 200 for success responses and any code that starts with 4 for error responses.

Session Management

Login

POST : api/login

Request Data:

##############################################################################
# INSTALL isolated PHP 5.6 ZTS (Thread-safe) with pthreads on Ubuntu 14.04 ###
##############################################################################
1) Install necessary bison version
wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
wget http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb
dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb
dpkg -i bison_2.7.1.dfsg-1_amd64.deb
@erkanarslan
erkanarslan / 0_reuse_code.js
Created January 16, 2016 15:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console