Skip to content

Instantly share code, notes, and snippets.

@bcls
Last active November 2, 2017 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcls/d95545e5647e91c088cd76904dc92ef3 to your computer and use it in GitHub Desktop.
Save bcls/d95545e5647e91c088cd76904dc92ef3 to your computer and use it in GitHub Desktop.
authentication section #html #codesamples
<!-- Note: you will likely need to change the operations and the image -->
<section class="bcls-section">
<h2 id="getCredentials" class="bcls-expander-head">Get credentials</h2>
<div class="bcls-expander-content">
<p>To use the CMS API you will need proper credentials.</p>
<p>The easiest way to get credentials in most cases is through the Studio Admin API Authentication section (requires admin permissions on your account). See <a href="/node/14056">Managing API Authentication Credentials</a> for details. In this case, the permissions you need are for <strong>sharing relationships</strong> - you need both read and write permissions:</p>
<figure class="bcls-figure">
<img class="bcls-image" src="" alt="Sharing Relationship Permissions">
<figcaption class="bcls-caption--image">Sharing Relationship Permissions</figcaption>
</figure>
<p>If the permissions you need are not available in Studio, or if you prefer to get them directly from the OAuth API, use your choice of the <strong>Get Client Credentials</strong> documents listed below. Whichever option you choose, you will need to ask for the correct operation permissions. The following can be used with cURL or Postman to get the proper permissions:</p>
<pre class="line-numbers">
<code class="language-json">"operations": ["video-cloud/sharing-relationships/read",
"video-cloud/sharing-relationships/create",
"video-cloud/sharing-relationships/update",
"video-cloud/sharing-relationships/delete"]</code></pre>
<ul>
<li><a href="/node/17924">OAuth: Get Client Credentials Using cURL</a></li>
<li><a href="/node/17923">OAuth: Get Client Credentials Using Postman</a></li>
</ul>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment