FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix example of successful Auth request, mention the XML option · andsip/developer.github.com@c25de06 · GitHub

Commit c25de06

Browse files
y-p
committed
Fix example of successful Auth request, mention the XML option
a previous commit claimed was the default.
1 parent 529d199 commit c25de06

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎content/v3/oauth.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ code
6363

6464
### Response
6565

66+
By default, the response will take the following form:
67+
68+
access_token=e72e16c7e42f292c6912e7710c838347ae178b4a&token_type=bearer
69+
70+
However, if you set the Accept Header like so:
71+
72+
Accept: application/xml
73+
74+
You will get back a response formatted as an XML fragment:
75+
6676
<pre class="highlight"><code class="language-xml">&lt;OAuth&gt;
6777
&lt;token_type&gt;bearer&lt;/token_type&gt;
6878
&lt;access_token&gt;e72e16c7e42f292c6912e7710c838347ae178b4a&lt;/access_token&gt;

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL