beanstalkapp 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/CHANGES.rdoc +4 -0
  2. data/VERSION +1 -1
  3. data/beanstalkapp.gemspec +106 -2
  4. data/doc/account.html +192 -0
  5. data/doc/changelog.html +150 -0
  6. data/doc/changeset.html +256 -0
  7. data/doc/comment.html +299 -0
  8. data/doc/files/javascripts/code-highlighter.js +190 -0
  9. data/doc/files/javascripts/global.js +67 -0
  10. data/doc/files/javascripts/mootools-1.2.4-core-yc.js +357 -0
  11. data/doc/files/stylesheets/global.css +2152 -0
  12. data/doc/files/stylesheets/ie7.css +85 -0
  13. data/doc/images/apple-touch-icon.png +0 -0
  14. data/doc/images/b-search.gif +0 -0
  15. data/doc/images/b-submit.gif +0 -0
  16. data/doc/images/b-tour.png +0 -0
  17. data/doc/images/bg-comments-count.png +0 -0
  18. data/doc/images/bg-corners.png +0 -0
  19. data/doc/images/bg-header-pattern-alt.png +0 -0
  20. data/doc/images/bg-header-pattern.png +0 -0
  21. data/doc/images/bg-header.png +0 -0
  22. data/doc/images/bg-input.png +0 -0
  23. data/doc/images/bg-page-pattern-alt.png +0 -0
  24. data/doc/images/bg-page-pattern.png +0 -0
  25. data/doc/images/bg-plans.png +0 -0
  26. data/doc/images/bg-ref-basecamp.gif +0 -0
  27. data/doc/images/bg-ref-lighthouse.gif +0 -0
  28. data/doc/images/bg-ref-rackspace.gif +0 -0
  29. data/doc/images/bg-ref-versions.gif +0 -0
  30. data/doc/images/bg-referrer.png +0 -0
  31. data/doc/images/bg-screenshot.png +0 -0
  32. data/doc/images/bg-tooltip.png +0 -0
  33. data/doc/images/button.png +0 -0
  34. data/doc/images/customers/blueflavor.png +0 -0
  35. data/doc/images/customers/brightcove.png +0 -0
  36. data/doc/images/customers/flipshake-s.png +0 -0
  37. data/doc/images/customers/flipshake.png +0 -0
  38. data/doc/images/customers/helloenjoy-s.png +0 -0
  39. data/doc/images/customers/helloenjoy.png +0 -0
  40. data/doc/images/customers/netmagazine.jpg +0 -0
  41. data/doc/images/customers/newrelic.png +0 -0
  42. data/doc/images/customers/puma.png +0 -0
  43. data/doc/images/customers/realmac-s.png +0 -0
  44. data/doc/images/customers/realmac.png +0 -0
  45. data/doc/images/customers/scrapblog.png +0 -0
  46. data/doc/images/customers/store74.gif +0 -0
  47. data/doc/images/customers/theappleblog.jpg +0 -0
  48. data/doc/images/customers/tuaw.jpg +0 -0
  49. data/doc/images/customers/vzaar-s.png +0 -0
  50. data/doc/images/customers/vzaar.png +0 -0
  51. data/doc/images/customers/wufoo-s.png +0 -0
  52. data/doc/images/customers/wufoo.png +0 -0
  53. data/doc/images/favicon.ico +0 -0
  54. data/doc/images/i-arrow.png +0 -0
  55. data/doc/images/i-cc.png +0 -0
  56. data/doc/images/i-checkmark.png +0 -0
  57. data/doc/images/i-features.png +0 -0
  58. data/doc/images/i-help.png +0 -0
  59. data/doc/images/i-input-email.png +0 -0
  60. data/doc/images/i-input-password.png +0 -0
  61. data/doc/images/i-leaf.png +0 -0
  62. data/doc/images/i-lock-sml.png +0 -0
  63. data/doc/images/i-rss.png +0 -0
  64. data/doc/images/i-tour-help.png +0 -0
  65. data/doc/images/logo-rackspace.gif +0 -0
  66. data/doc/images/logo-sml.png +0 -0
  67. data/doc/images/logo-wildbit.png +0 -0
  68. data/doc/images/logo.png +0 -0
  69. data/doc/images/logos/basecamp-ref.png +0 -0
  70. data/doc/images/logos/basecamp.png +0 -0
  71. data/doc/images/logos/campfire.png +0 -0
  72. data/doc/images/logos/cloudscaling.png +0 -0
  73. data/doc/images/logos/collabnet.gif +0 -0
  74. data/doc/images/logos/dynect.png +0 -0
  75. data/doc/images/logos/fogbugz.png +0 -0
  76. data/doc/images/logos/freckle.png +0 -0
  77. data/doc/images/logos/harvest-ref.gif +0 -0
  78. data/doc/images/logos/harvest.png +0 -0
  79. data/doc/images/logos/lighthouse-ref.png +0 -0
  80. data/doc/images/logos/lighthouse.png +0 -0
  81. data/doc/images/logos/pixelnovel.png +0 -0
  82. data/doc/images/logos/rackspace-ref.gif +0 -0
  83. data/doc/images/logos/rackspace.gif +0 -0
  84. data/doc/images/logos/rackspace.png +0 -0
  85. data/doc/images/logos/splunk-s.png +0 -0
  86. data/doc/images/logos/splunk.png +0 -0
  87. data/doc/images/logos/teamsupport.png +0 -0
  88. data/doc/images/logos/twitter.png +0 -0
  89. data/doc/images/logos/versions-ref.gif +0 -0
  90. data/doc/images/logos/versions.png +0 -0
  91. data/doc/images/promo-screenshots.png +0 -0
  92. data/doc/images/sep-promo.png +0 -0
  93. data/doc/images/ss-browse.png +0 -0
  94. data/doc/images/ss-changeset.png +0 -0
  95. data/doc/images/ss-dashboard.png +0 -0
  96. data/doc/images/ss-integrations.png +0 -0
  97. data/doc/images/ss-releases.png +0 -0
  98. data/doc/images/ss-repositories.png +0 -0
  99. data/doc/images/ss-signup-motivator.jpg +0 -0
  100. data/doc/introduction.html +152 -0
  101. data/doc/rails_plugin.html +141 -0
  102. data/doc/release.html +282 -0
  103. data/doc/release_server.html +340 -0
  104. data/doc/repository.html +326 -0
  105. data/doc/ruby_gem.html +160 -0
  106. data/doc/server_environment.html +270 -0
  107. data/doc/user.html +210 -0
  108. data/lib/beanstalkapp/release.rb +6 -2
  109. data/test/integration.rb +11 -3
  110. metadata +106 -2
@@ -0,0 +1,270 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>Beanstalk &mdash; Hassle-free Subversion Hosting</title>
7
+ <meta name="description" content="Beanstalk allows designers and developers to store source code, track changes, and collaborate with their team.">
8
+ <meta name="author" content="Wildbit, LLC">
9
+ <meta name="viewport" content="width=980">
10
+
11
+ <!--[if IE]>
12
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+
15
+ <link rel="stylesheet" href="files/stylesheets/global.css" media="all">
16
+
17
+ <!--[if IE 7]>
18
+ <link rel="stylesheet" href="files/stylesheets/ie7.css" media="all">
19
+ <![endif]-->
20
+
21
+ <script type="text/javascript" src="files/javascripts/mootools-1.2.4-core-yc.js"></script>
22
+ <script type="text/javascript" src="files/javascripts/code-highlighter.js"></script>
23
+ <script type="text/javascript" src="files/javascripts/global.js"></script>
24
+
25
+ <link rel="shortcut icon" href="images/favicon.ico">
26
+ <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
27
+ </head>
28
+
29
+ <body>
30
+ <header>
31
+ <div class="container">
32
+
33
+ <hgroup>
34
+ <h1><a href="http://beanstalkapp.com">Beanstalk</a></h1>
35
+ <h2><a href="http://beanstalkapp.com">Version Control with a Human Face</a></h2>
36
+ </hgroup>
37
+
38
+ <nav>
39
+ <ul>
40
+ <li><a href="http://beanstalkapp.com">Home</a></li>
41
+ <li><a href="http://beanstalkapp.com/features">Feature Tour</a></li>
42
+ <li><a href="http://beanstalkapp.com/buzz">Buzz</a></li>
43
+ <li><a href="http://help.beanstalkapp.com/">Support</a></li>
44
+ <li><a href="http://beanstalkapp.com/partners">Partners</a></li>
45
+ <li><a href="http://blog.beanstalkapp.com">Blog</a></li>
46
+ <li><strong>API &amp; Tools</strong></li>
47
+ <li class="link-signin"><a href="https://login.beanstalkapp.com">Log In</a></li>
48
+ <li class="link-signup"><a href="http://beanstalkapp.com/pricing">Pricing &amp; Sign Up</a></li>
49
+ </ul>
50
+ </nav>
51
+
52
+ <b class="cl"></b><b class="cr"></b>
53
+ </div>
54
+ </header>
55
+
56
+ <div class="page" id="api">
57
+ <div class="container">
58
+ <section class="wrap">
59
+ <h1>Server Environment model</h1>
60
+ <p>Server Environment is a model that represents a group of Release Servers. Previously in Beanstalk all Deployments
61
+ were assigned a Release Server, but now they are assigned a Server Environment. Server Environment can have many Release Servers
62
+ in it.</p>
63
+ <h3>Writable attributes</h3>
64
+ <ol>
65
+ <li><var>name</var> — must be unique in repository, name must be no longer than 20 chars;</li>
66
+ <li><var>automatic</var> — &#8220;true&#8221; or &#8220;false&#8221;;</li>
67
+ <li><var>branch_name</var> — for Git repositories it means the branch which this environment will be deploying;</li>
68
+ </ol>
69
+ <h3>Find all Server Environments</h3>
70
+ <p>You need to specify the repository ID. It’s the number 58 in the example below.</p>
71
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/58/server_environments.xml</pre></code></div>
72
+
73
+ <div class="code_container response">
74
+ <p>Click to expand&hellip;</p>
75
+ <i>http-response</i>
76
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
77
+ &lt;server-environments type=&quot;array&quot;&gt;
78
+ &lt;server-environment&gt;
79
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
80
+ &lt;automatic type=&quot;boolean&quot;&gt;true&lt;/automatic&gt;
81
+ &lt;branch-name&gt;production&lt;/branch-name&gt;
82
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-07-01T13:58:55+08:00&lt;/created-at&gt;
83
+ &lt;current-version&gt;319dded3c14a2f901686b98fc58d5026f102ba65&lt;/current-version&gt;
84
+ &lt;id type=&quot;integer&quot;&gt;6&lt;/id&gt;
85
+ &lt;name&gt;Mascarpone&lt;/name&gt;
86
+ &lt;repository-id type=&quot;integer&quot;&gt;58&lt;/repository-id&gt;
87
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-08-09T11:32:53+08:00&lt;/updated-at&gt;
88
+ &lt;/server-environment&gt;
89
+ &lt;server-environment&gt;
90
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
91
+ &lt;automatic type=&quot;boolean&quot;&gt;true&lt;/automatic&gt;
92
+ &lt;branch-name&gt;staging&lt;/branch-name&gt;
93
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-07-01T14:20:37+08:00&lt;/created-at&gt;
94
+ &lt;current-version&gt;f17b73d207feb8ec21ad43dc8fafc20e934d7c04&lt;/current-version&gt;
95
+ &lt;id type=&quot;integer&quot;&gt;7&lt;/id&gt;
96
+ &lt;name&gt;The Staging&lt;/name&gt;
97
+ &lt;repository-id type=&quot;integer&quot;&gt;58&lt;/repository-id&gt;
98
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-07-06T19:58:20+08:00&lt;/updated-at&gt;
99
+ &lt;/server-environment&gt;
100
+ &lt;/server-environments&gt;</code></pre>
101
+ </div>
102
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::ServerEnvironment.find_all_for_repository(&quot;repo&quot;)</pre></code></div>
103
+ <h3>Find a single Server Environment</h3>
104
+ <p>To find an environment use it’s ID. <var>repository_id</var> is required as well. It’s the number 58 in the example below.</p>
105
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/58/server_environments/6.xml</pre></code></div>
106
+
107
+ <div class="code_container response">
108
+ <p>Click to expand&hellip;</p>
109
+ <i>http-response</i>
110
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
111
+ &lt;server-environment&gt;
112
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
113
+ &lt;automatic type=&quot;boolean&quot;&gt;true&lt;/automatic&gt;
114
+ &lt;branch-name&gt;production&lt;/branch-name&gt;
115
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-07-01T13:58:55+08:00&lt;/created-at&gt;
116
+ &lt;current-version&gt;319dded3c14a2f901686b98fc58d5026f102ba65&lt;/current-version&gt;
117
+ &lt;id type=&quot;integer&quot;&gt;6&lt;/id&gt;
118
+ &lt;name&gt;Mascarpone&lt;/name&gt;
119
+ &lt;repository-id type=&quot;integer&quot;&gt;58&lt;/repository-id&gt;
120
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-08-09T11:32:53+08:00&lt;/updated-at&gt;
121
+ &lt;/server-environment&gt;</code></pre>
122
+ </div>
123
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::ServerEnvironment.find_for_repository(
124
+ 6, &quot;repo&quot;
125
+ )</pre></code></div>
126
+ <h3>Create a Server Environment</h3>
127
+ <p>See the list of writable attributes at the top of the page. Only name attribute and branch_name (for Git repos) are required for creation.</p>
128
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>POST /api/58/server_environments.xml
129
+ &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
130
+ &lt;server-environment&gt;
131
+ &lt;name&gt;The Development&lt;/name&gt;
132
+ &lt;/server-environment&gt;
133
+ </pre></code></div>
134
+ <div class="code_container response">
135
+ <p>Click to expand&hellip;</p>
136
+ <i>http-response</i>
137
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
138
+ &lt;server-environment&gt;
139
+ &lt;account-id type=&quot;integer&quot;&gt;4&lt;/account-id&gt;
140
+ &lt;automatic type=&quot;boolean&quot;&gt;true&lt;/automatic&gt;
141
+ &lt;branch-name&gt;production&lt;/branch-name&gt;
142
+ &lt;created-at type=&quot;datetime&quot;&gt;2010-07-01T13:58:55+08:00&lt;/created-at&gt;
143
+ &lt;current-version&gt;319dded3c14a2f901686b98fc58d5026f102ba65&lt;/current-version&gt;
144
+ &lt;id type=&quot;integer&quot;&gt;12&lt;/id&gt;
145
+ &lt;name&gt;The Development&lt;/name&gt;
146
+ &lt;repository-id type=&quot;integer&quot;&gt;58&lt;/repository-id&gt;
147
+ &lt;updated-at type=&quot;datetime&quot;&gt;2010-08-09T11:32:53+08:00&lt;/updated-at&gt;
148
+ &lt;/server-environment&gt;
149
+
150
+ --OR IF INVALID--
151
+
152
+ &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
153
+ &lt;errors&gt;
154
+ &lt;error&gt;Name can't be blank&lt;/error&gt;
155
+ &lt;/errors&gt;</code></pre>
156
+ </div>
157
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>env = Beanstalk::API::ServerEnvironment.new(
158
+ :name =&gt; &quot;Macaroni&quot;,
159
+ :automatic =&gt; true,
160
+ :branch_name =&gt; &quot;master&quot;
161
+ )
162
+ env.prefix_options = { :repository_id =&gt; 58 }
163
+ env.save
164
+ </pre></code></div>
165
+ <h3>Update existing Server Environment</h3>
166
+ <p>See the list of writable attributes at the top of the page. You only need to pass the attributes that you want to change.</p>
167
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>PUT /api/58/server_environments/6.xml
168
+ &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
169
+ &lt;server-environment&gt;
170
+ &lt;name&gt;The Development&lt;/name&gt;
171
+ &lt;/server-environment&gt;</pre></code></div>
172
+ <div class="code_container response">
173
+ <p>Click to expand&hellip;</p>
174
+ <i>http-response</i>
175
+ <pre><code>HEAD 200 OK
176
+
177
+ --OR IF INVALID--
178
+
179
+ &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
180
+ &lt;errors&gt;
181
+ &lt;error&gt;Name must be unique in repository.&lt;/error&gt;
182
+ &lt;/errors&gt;</code></pre>
183
+ </div>
184
+ <p>Or using the ruby lib:</p>
185
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>env = Beanstalk::API::ServerEnvironment.find_for_repository(6, 58)
186
+ env.prefix_options = { :repository_id =&gt; 58 }
187
+ env.name = &quot;The Development&quot;
188
+ env.save
189
+ </pre></code></div>
190
+ </section>
191
+
192
+ <section id="sidebar">
193
+ <ul class="tabs">
194
+ <li>
195
+
196
+ <a href="introduction.html">Introduction</a>
197
+ </li>
198
+ <li>
199
+
200
+ <a href="changelog.html">Changelog</a>
201
+ </li>
202
+ <li>
203
+
204
+ <a href="ruby_gem.html">Ruby Gem</a>
205
+ </li>
206
+ <li>
207
+
208
+ <a href="account.html">Account</a>
209
+ </li>
210
+ <li>
211
+
212
+ <a href="user.html">User</a>
213
+ </li>
214
+ <li>
215
+
216
+ <a href="repository.html">Repository</a>
217
+ </li>
218
+ <li>
219
+
220
+ <a href="changeset.html">Changeset</a>
221
+ </li>
222
+ <li>
223
+
224
+ <a href="comment.html">Comment</a>
225
+ </li>
226
+ <li>
227
+
228
+ <strong>&rarr; Server Environment</strong>
229
+ </li>
230
+ <li>
231
+
232
+ <a href="release_server.html">Release Server</a>
233
+ </li>
234
+ <li>
235
+
236
+ <a href="release.html">Release</a>
237
+ </li>
238
+ </ul>
239
+ </section>
240
+ </div>
241
+ </div>
242
+
243
+ <footer>
244
+
245
+ <div class="container">
246
+ <ul>
247
+ <li><a href="http://help.beanstalkapp.com/discussion/new">Contact</a></li>
248
+ <li><a href="http://blog.beanstalkapp.com">Blog</a></li>
249
+ <li><a href="http://twitter.com/beanstalkapp">Twitter</a></li>
250
+ <li><a href="http://beanstalkapp.com/security">Security</a></li>
251
+ <li><a href="http://beanstalkapp.com/privacy-policy">Privacy Policy</a></li>
252
+ <li><a href="http://beanstalkapp.com/terms-of-service">Terms of Service</a></li>
253
+ </ul>
254
+ <p>&copy; <a href="http://wildbit.com/">Wildbit, <abbr>LLC</abbr></a>, 2010. All rights reserved. The Beanstalk logo and name are trademarks of Wildbit, <abbr>LLC</abbr>.</p>
255
+ </div>
256
+
257
+ </footer>
258
+
259
+ <script type="text/javascript">
260
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
261
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
262
+ </script>
263
+ <script type="text/javascript">
264
+ try {
265
+ var pageTracker = _gat._getTracker("UA-507677-5");
266
+ pageTracker._setDomainName(".beanstalkapp.com");
267
+ pageTracker._trackPageview();
268
+ } catch(err) {}</script>
269
+ </body>
270
+ </html>
@@ -0,0 +1,210 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html lang="en">
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>Beanstalk &mdash; Hassle-free Subversion Hosting</title>
7
+ <meta name="description" content="Beanstalk allows designers and developers to store source code, track changes, and collaborate with their team.">
8
+ <meta name="author" content="Wildbit, LLC">
9
+ <meta name="viewport" content="width=980">
10
+
11
+ <!--[if IE]>
12
+ <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+
15
+ <link rel="stylesheet" href="files/stylesheets/global.css" media="all">
16
+
17
+ <!--[if IE 7]>
18
+ <link rel="stylesheet" href="files/stylesheets/ie7.css" media="all">
19
+ <![endif]-->
20
+
21
+ <script type="text/javascript" src="files/javascripts/mootools-1.2.4-core-yc.js"></script>
22
+ <script type="text/javascript" src="files/javascripts/code-highlighter.js"></script>
23
+ <script type="text/javascript" src="files/javascripts/global.js"></script>
24
+
25
+ <link rel="shortcut icon" href="images/favicon.ico">
26
+ <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
27
+ </head>
28
+
29
+ <body>
30
+ <header>
31
+ <div class="container">
32
+
33
+ <hgroup>
34
+ <h1><a href="http://beanstalkapp.com">Beanstalk</a></h1>
35
+ <h2><a href="http://beanstalkapp.com">Version Control with a Human Face</a></h2>
36
+ </hgroup>
37
+
38
+ <nav>
39
+ <ul>
40
+ <li><a href="http://beanstalkapp.com">Home</a></li>
41
+ <li><a href="http://beanstalkapp.com/features">Feature Tour</a></li>
42
+ <li><a href="http://beanstalkapp.com/buzz">Buzz</a></li>
43
+ <li><a href="http://help.beanstalkapp.com/">Support</a></li>
44
+ <li><a href="http://beanstalkapp.com/partners">Partners</a></li>
45
+ <li><a href="http://blog.beanstalkapp.com">Blog</a></li>
46
+ <li><strong>API &amp; Tools</strong></li>
47
+ <li class="link-signin"><a href="https://login.beanstalkapp.com">Log In</a></li>
48
+ <li class="link-signup"><a href="http://beanstalkapp.com/pricing">Pricing &amp; Sign Up</a></li>
49
+ </ul>
50
+ </nav>
51
+
52
+ <b class="cl"></b><b class="cr"></b>
53
+ </div>
54
+ </header>
55
+
56
+ <div class="page" id="api">
57
+ <div class="container">
58
+ <section class="wrap">
59
+ <h1>User model</h1>
60
+ <p class='warning'>Admin privileges required for these <span class="caps">API</span> methods.</p>
61
+ <h3>Find all users</h3>
62
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/users.xml</pre></code></div>
63
+
64
+ <div class="code_container response">
65
+ <p>Click to expand&hellip;</p>
66
+ <i>http-response</i>
67
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
68
+ &lt;users type=&quot;array&quot;&gt;
69
+ &lt;user&gt;
70
+ &lt;account-id type=&quot;integer&quot;&gt;44253&lt;/account-id&gt;
71
+ &lt;admin type=&quot;boolean&quot;&gt;true&lt;/admin&gt;
72
+ &lt;created-at type=&quot;datetime&quot;&gt;
73
+ 2007-05-16T23:52:31Z
74
+ &lt;/created-at&gt;
75
+ &lt;email&gt;email@example.com&lt;/email&gt;
76
+ &lt;first-name&gt;Dima&lt;/first-name&gt;
77
+ &lt;id type=&quot;integer&quot;&gt;624622&lt;/id&gt;
78
+ &lt;last-name&gt;Sabanin&lt;/last-name&gt;
79
+ &lt;login&gt;sdmitry&lt;/login&gt;
80
+ &lt;timezone&gt;Krasnoyarsk&lt;/timezone&gt;
81
+ &lt;updated-at type=&quot;datetime&quot;&gt;
82
+ 2009-04-20T19:05:16Z
83
+ &lt;/updated-at&gt;
84
+ &lt;/user&gt;
85
+ &lt;user&gt;
86
+ &lt;account-id type=&quot;integer&quot;&gt;56346&lt;/account-id&gt;
87
+ &lt;admin type=&quot;boolean&quot; nil=&quot;true&quot;&gt;&lt;/admin&gt;
88
+ &lt;created-at type=&quot;datetime&quot;&gt;
89
+ 2007-05-17T00:55:39Z
90
+ &lt;/created-at&gt;
91
+ &lt;email&gt;fakeemail_2@nowhere.example.com&lt;/email&gt;
92
+ &lt;first-name&gt;Ilya&lt;/first-name&gt;
93
+ &lt;id type=&quot;integer&quot;&gt;2349&lt;/id&gt;
94
+ &lt;last-name&gt;Sabanin&lt;/last-name&gt;
95
+ &lt;login&gt;ilya&lt;/login&gt;
96
+ &lt;timezone nil=&quot;true&quot;&gt;&lt;/timezone&gt;
97
+ &lt;updated-at type=&quot;datetime&quot;&gt;
98
+ 2009-04-20T19:05:18Z
99
+ &lt;/updated-at&gt;
100
+ &lt;/user&gt;
101
+ &lt;/users&gt;</code></pre>
102
+ </div>
103
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::User.find(:all)</pre></code></div>
104
+ <h3>Find a single user</h3>
105
+ <p>User ID is required. Number 27 in the examples below.</p>
106
+ <div class="code_container http-request"><i>http-request</i><code class="http-request"><pre>GET /api/users/27.xml</pre></code></div>
107
+
108
+ <div class="code_container response">
109
+ <p>Click to expand&hellip;</p>
110
+ <i>http-response</i>
111
+ <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
112
+ &lt;user&gt;
113
+ &lt;account-id type=&quot;integer&quot;&gt;44253&lt;/account-id&gt;
114
+ &lt;admin type=&quot;boolean&quot;&gt;true&lt;/admin&gt;
115
+ &lt;created-at type=&quot;datetime&quot;&gt;
116
+ 2007-05-16T23:52:31Z
117
+ &lt;/created-at&gt;
118
+ &lt;email&gt;email@example.com&lt;/email&gt;
119
+ &lt;first-name&gt;Dima&lt;/first-name&gt;
120
+ &lt;id type=&quot;integer&quot;&gt;624622&lt;/id&gt;
121
+ &lt;last-name&gt;Sabanin&lt;/last-name&gt;
122
+ &lt;login&gt;sdmitry&lt;/login&gt;
123
+ &lt;timezone&gt;Krasnoyarsk&lt;/timezone&gt;
124
+ &lt;updated-at type=&quot;datetime&quot;&gt;
125
+ 2009-04-20T19:05:16Z
126
+ &lt;/updated-at&gt;
127
+ &lt;/user&gt;</code></pre>
128
+ </div>
129
+ <div class="code_container ruby"><i>ruby</i><code class="ruby"><pre>Beanstalk::API::User.find(27)</pre></code></div>
130
+ </section>
131
+
132
+ <section id="sidebar">
133
+ <ul class="tabs">
134
+ <li>
135
+
136
+ <a href="introduction.html">Introduction</a>
137
+ </li>
138
+ <li>
139
+
140
+ <a href="changelog.html">Changelog</a>
141
+ </li>
142
+ <li>
143
+
144
+ <a href="ruby_gem.html">Ruby Gem</a>
145
+ </li>
146
+ <li>
147
+
148
+ <a href="account.html">Account</a>
149
+ </li>
150
+ <li>
151
+
152
+ <strong>&rarr; User</strong>
153
+ </li>
154
+ <li>
155
+
156
+ <a href="repository.html">Repository</a>
157
+ </li>
158
+ <li>
159
+
160
+ <a href="changeset.html">Changeset</a>
161
+ </li>
162
+ <li>
163
+
164
+ <a href="comment.html">Comment</a>
165
+ </li>
166
+ <li>
167
+
168
+ <a href="server_environment.html">Server Environment</a>
169
+ </li>
170
+ <li>
171
+
172
+ <a href="release_server.html">Release Server</a>
173
+ </li>
174
+ <li>
175
+
176
+ <a href="release.html">Release</a>
177
+ </li>
178
+ </ul>
179
+ </section>
180
+ </div>
181
+ </div>
182
+
183
+ <footer>
184
+
185
+ <div class="container">
186
+ <ul>
187
+ <li><a href="http://help.beanstalkapp.com/discussion/new">Contact</a></li>
188
+ <li><a href="http://blog.beanstalkapp.com">Blog</a></li>
189
+ <li><a href="http://twitter.com/beanstalkapp">Twitter</a></li>
190
+ <li><a href="http://beanstalkapp.com/security">Security</a></li>
191
+ <li><a href="http://beanstalkapp.com/privacy-policy">Privacy Policy</a></li>
192
+ <li><a href="http://beanstalkapp.com/terms-of-service">Terms of Service</a></li>
193
+ </ul>
194
+ <p>&copy; <a href="http://wildbit.com/">Wildbit, <abbr>LLC</abbr></a>, 2010. All rights reserved. The Beanstalk logo and name are trademarks of Wildbit, <abbr>LLC</abbr>.</p>
195
+ </div>
196
+
197
+ </footer>
198
+
199
+ <script type="text/javascript">
200
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
201
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
202
+ </script>
203
+ <script type="text/javascript">
204
+ try {
205
+ var pageTracker = _gat._getTracker("UA-507677-5");
206
+ pageTracker._setDomainName(".beanstalkapp.com");
207
+ pageTracker._trackPageview();
208
+ } catch(err) {}</script>
209
+ </body>
210
+ </html>