-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
30 lines (24 loc) · 903 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Server code to operate Message Carrier.
# Message Carrier Server
## GETTING SETUP
* Install RVM
http://rvm.beginrescueend.com/
* rvm install ruby-1.9.2
* rvm use 1.9.2
* rvm gemset create messagecarrier
* gem install bundler
* bundle install
### RUNNING DEV SERVER
* bundle exec rackup
### PUSHING LIVE
##### Message JSON API (Name : Value)
"destination" : String #Phone number, Twitter Handle, or Email Address
"hopcount" : Int #Number of hops between phones from sender to server
"messagebody" : String #The message, limited 140 characters by sender
"messageid" : Hex String #Random message id string
"messagetype" : Int #0 = sms, 1 = email, 2 = twitter
"sourceid" : String #sender UUID
"status" : Int #404 = failure; 200 = successfully sent and received
"sendername" : String #User Entered name of sender
"location" : String #GPS coordinates, format TBD
"timestamp" : String #unix time stamp