-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
201 lines (196 loc) · 6.85 KB
/
index.html
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
---
layout: landing-page
title: Gonebusy | Developer Portal
description: The Gonebusy Developer Portal - the first stop for developers seeking to integrate with the Gonebusy booking platform.
keywords: Gonebusy, booking, platform, api, developers, portal, reference, guide
---
<!-- One -->
<section id="one" class="wrapper style1">
<div class="container">
<div class="row">
<div class="4u 12u$(medium) push-bottom">
<section class="special">
<i class="image fit"><img class="icon gettingstarted" src="../images/icon-getting-started.svg" alt="Get Started"></i>
<ul class="actions">
<li><a href="/api#/getting_started" class="button big special">Get Started</a></li>
</ul>
<p class="narrow">Create your first booking in a few simple steps.</p>
</section>
</div>
<div class="4u 12u$(medium) push-bottom">
<section class="special">
<i class="image fit"><img class="icon libraries" src="../images/icon-libraries.svg" alt="Libraries"></i>
<ul class="actions">
<li><a href="/libraries" class="button big special">Libraries</a></li>
</ul>
<p class="narrow">Prefer pre-built libraries? Find them here.</p>
</section>
</div>
<div class="4u 12u$(medium) push-bottom">
<section class="special">
<i class="image fit"><img class="icon support" src="../images/icon-support.svg" alt="Support"></i>
<ul class="actions">
<li><a href="https://beta.gonebusy.com/support" class="button big special">Support</a></li>
</ul>
<p class="narrow">Have a question? We’re here to help!</p>
</section>
</div>
</div>
</div>
</section>
<!-- Two -->
<section id="two" class="wrapper style2">
<div class="container">
<header class="major">
<h2>Get Started With Gonebusy</h2>
</header>
<div class="row">
<div class="12u">
<section class="special">
<i class="icon number">1</i>
<h3>Obtain an API Key</h3>
<p><a href="#">Sign Up</a> and become a Pro User to obtain an API Key.</p>
<p>API Keys look like this: </p>
<div class="row">
<div class="-2u 8u 12u$(medium)">
{% highlight ruby %}
ac98ed08b5b0a9e7c43a233aeba841ce
{% endhighlight %}
</div>
</div>
</section>
</div>
</div>
<div class="row">
<div class="12u">
<section class="special">
<i class="icon number">2</i>
<h3>Configure Your Client</h3>
<p>Here we use the Ruby SDK to configure our API Key:</p>
<div class="row">
<div class="-2u 8u 12u$(medium)">
{% highlight ruby %}
Gonebusy::Configuration.api_key = ac98ed08b5b0a9e7c43a233aeba841ce
{% endhighlight %}
</div>
</div>
</section>
</div>
</div>
<div class="row">
<div class="12u">
<section class="special">
<i class="icon number">3</i>
<h3>Create a Service or Activity</h3>
<p>Create the Service or Activity that you would like your clients to book:</p>
<div class="row">
<div class="-2u 8u 12u$(medium)">
{% highlight ruby %}
service = Gonebusy::Service.create(
name: 'Executive Car Wash',
duration: 30,
description: 'Get your car washed by executives.'
)
{% endhighlight %}
</div>
</div>
</section>
</div>
</div>
<div class="row">
<div class="12u">
<section class="special">
<i class="icon number">4</i>
<h3>Create a Schedule</h3>
<p>Create a Schedule for your new Service:</p>
<div class="row">
<div class="-2u 8u 12u$(medium)">
{% highlight ruby %}
Gonebusy::Schedule.create(
service,
start_date: '2016-02-01',
end_date: '2016-03-31',
start_time: '12pm',
end_time: '2pm',
days: ['monday', 'wednesday', 'friday'],
recurs_by: 'weekly'
)
{% endhighlight %}
</div>
</div>
</section>
</div>
</div>
<div class="row">
<div class="12u">
<section class="special">
<i class="icon number">5</i>
<h3>Check Your Work!</h3>
<p>Let's check our work by Searching for available time for our Service:</p>
<div class="row">
<div class="-2u 8u 12u$(medium)">
{% highlight ruby %}
slots_result = Gonebusy::Service.available_slots(
service,
date: '2016-03-11'
)
puts slots_result
> { date: '2016-03-11',
slots: [ '2016-03-11T12:00:00Z',
'2016-03-11T12:15:00Z',
'2016-03-11T12:30:00Z',
'2016-03-11T12:45:00Z',
'2016-03-11T13:00:00Z',
'2016-03-11T13:15:00Z',
'2016-03-11T13:30:00Z'] }
{% endhighlight %}
</div>
</div>
</section>
</div>
</div>
</div>
</section>
<!-- Three -->
<section id="three" class="wrapper style1">
<div class="container" id="subscribe">
<div class="row">
<div class="6u 12u$(medium)">
<section>
<p class="vertical-center">Subscribe to stay up to date on new features, bug fixes, and API updates! We respect your <a href="https://beta.gonebusy.com/privacy_policy">privacy</a>.</p>
</section>
</div>
<div class="6u 12u$(medium) ">
<section class="subscribe-form-container">
<form id="subscribeForm" action="">
<div class="row">
<div class="7u 12u$(medium)">
<input type="email" class="vertical-center" id="email" placeholder="Your Email Address" required></input>
<input type="text" id="gotcha" style="display:none;" />
</div>
<div class="-1u 4u 12u$(medium) align-center">
<a type="submit" class="button big special" id="submit">Subscribe</a>
</div>
</div>
</form>
</section>
</div>
</div>
<div class="row">
<div class="12u">
<div class="alert alert-success" style="display:none;">
<a class="close" data-dismiss="alert">×</a>
<strong>Thank you!</strong> You've successfully subscribed to the Gonebusy mailing list.
</div>
<div class="alert alert-block" style="display:none;">
<a class="close" data-dismiss="alert">×</a>
<strong>Hmmm...</strong> Are you sure that's a valid email address?
</div>
<div class="alert alert-error" style="display:none;">
<a class="close" data-dismiss="alert">×</a>
<strong>Oops!</strong> It looks like there's been a problem. Please wait and resubmit.
</div>
</div>
</div>
</div>
</section>