-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathconnection.html.erb
executable file
·47 lines (20 loc) · 1.08 KB
/
connection.html.erb
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
<a href="/api">« Back to index</a>
<div style="padding:30px; padding-top:0px;border-bottom:1px solid #ddd;">
<h2><span style='color:#ff6600; width:200px;margin-right:20px;'>POST</span>/oauth/access_token</h2>
<strong>Access:</strong> <br />
<strong>Return:</strong>
<a href="#xml" onclick="$('xmlrep').show();">XML</a>
-
access_token, refresh_token, expires_in
<br />
<strong>Parameters:</strong>
<ul>
<li>grant_type:string - Required. Either "user_basic" or "refresh_token"</li><li>client_id: string - Required. Client identification</li><li>login:string - required for grant_type "user_basic". The user's login/username</li><li>password:string - required for grant_type "user_basic". The user's password</li>
</ul>
<p><strong>Description:</strong>
Allows a consumer application to request an OAuth Access Token by
providing its client_id along with a grant_type and associated parameters.
This method fulfills Section 4 of the OAuth 2.0 Protocol
</p>
</div>
<%= render :partial => "sidebar" %>