-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocs.html
More file actions
184 lines (139 loc) · 5.8 KB
/
Copy pathdocs.html
File metadata and controls
184 lines (139 loc) · 5.8 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The Gateway - Docs </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="./bootstrap/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<link href="./bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="http://twitter.github.com/bootstrap/assets/css/docs.css" rel="stylesheet">
<link href="http://twitter.github.com/bootstrap/assets/js/google-code-prettify/prettify.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="shortcut icon" href="./bootstrap/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="./bootstrap/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="./bootstrap/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="./bootstrap/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="./bootstrap/ico/apple-touch-icon-57-precomposed.png">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">The Gateway</a>
<div class="nav-collapse collapse">
<p class="navbar-text pull-right">
Logged in as <a href="profile.html" class="navbar-link">Username</a>
</p>
<ul class="nav">
<li><a href="menu.html">Home</a></li>
<li><a href="profile.html">Profile</a></li>
<li><a href="accounts.html">Accounts</a></li>
<li><a href="billing.html">Billing</a></li>
<li><a href="stats.html">Stats</a></li>
<li class="active"><a href="docs.html">Docs</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<!-- Subhead
================================================== -->
<header class="jumbotron subhead" id="overview">
<div class="container">
<h1>Getting started</h1>
<p class="lead">Overview of the project, its contents, and how to get started with a simple template.</p>
</div>
</header>
<div class="container">
<!-- Docs nav
================================================== -->
<div class="row">
<div class="span3 bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<li><a href="#download-bootstrap"><i class="icon-chevron-right"></i> Download</a></li>
<li><a href="#send-sms-structure"><i class="icon-chevron-right"></i> Send sms</a></li>
</ul>
</div>
<div class="span9">
<!-- Download
================================================== -->
<section id="download-bootstrap">
<div class="page-header">
<h1>1. Download</h1>
</div>
<p class="lead">Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files.</p>
</section>
<!-- Send sms
================================================== -->
<section id="send-sms-structure">
<div class="page-header">
<h1>Send sms</h1>
</div>
<p class="lead">With send sms you can send sms.</p>
<pre class="prettyprint">POST /messages/sms</pre>
<h2>Input</h2>
<pre class="prettyprint">
*from*
_Required_ *string* - The phone number from which the message is sent.
*to*
_Required_ *string* - The phone number to which the message is sent.
*message*
_Required_ *string* - The sms message that is sent, could be max 160 chars.
*repeat*
*number* - The sms will be sent this number of times or until an url that
will be attached to the message is clicked. If repeat is defined
the message can only be 160-20 characters.
*repeat_interval*
*number* - If *repeat* is defined the message will be sent every
*repeat_interval* minute.
</pre>
<pre>{
"from": "+46736265400",
"to": "+46736265449",
"message": "This is an sms message.",
"repeat": 10,
"repeat_interval": 5
}</pre>
<h2>Response</h2>
<pre class="prettyprint">
Status: 201 Created
Location: https://api.amivono.com/messages/sms/1
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999
{
"from": "+46736265400",
"to": "+46736265449",
"message": "This is an sms message. https://api.amivono.com/xkjskje34di",
"last_sent_at": null,
"repeat": 9,
"repeat_interval": 5
"created_at": "2011-04-22T13:33:48Z",
"updated_at": "2011-04-22T13:33:48Z"
}
</pre>
</section>
</div>
</div>
</div>
</body>
</html>