Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Commit 23b24b9

Browse files
authored
Merge pull request #5 from workpathco/api-docs
[master]: added URL-encoded string example in place of JSON to client credentials section
2 parents 13d4ddb + fd746db commit 23b24b9

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

index.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -452,16 +452,16 @@ <h4>Client Credential Grant Type</h4>
452452
</div>
453453
<div class="row">
454454
<div class="col-6">
455-
<h5>Request Attributes</h5>
456-
<p><code>POST https://api.workpath.co/oauth/authorize</code></p>
455+
<h5>Request Parameters</h5>
456+
<p><code>POST https://api.workpath.co/oauth/token</code></p>
457457
<table class="table table-sm table-borderless">
458458
<tbody>
459459
<tr>
460460
<td>
461461
<p class="cell"><code class="attribute">grant_type</code> <code>string</code></p>
462462
<p class="small">required</p>
463463
</td>
464-
<td>OAuth grant type. Value should be <code>authorization_code</code>.</td>
464+
<td>OAuth grant type. Value should be <code>client_credentials</code>.</td>
465465
</tr>
466466
<tr>
467467
<td>
@@ -479,16 +479,8 @@ <h5>Request Attributes</h5>
479479
</table>
480480
</div>
481481
<div class="col-6">
482-
<h5>Example Request JSON</h5>
483-
<pre>
484-
<code>
485-
{
486-
"grant_type": "client_credentials",
487-
"client_id": "4ab41347-e24f-475d-b1da-bce37ae31af3",
488-
"client_secret": "SX0LGy6z!Pa~,V-!A:az"
489-
}
490-
</code>
491-
</pre>
482+
<h5>Example URL-Encoded String</h5>
483+
<p><code>grant_type=client_credentials&client_id=4ab41347-e24f-475d-b1da-bce37ae31af3&client_secret=SX0LGy6z!Pa~%2CV-!A%3Aaz</code></p>
492484
</div>
493485
</div>
494486
<div class="row">

0 commit comments

Comments
 (0)