title: Oauth2.0 server in php very simple implementation - use access_token with POST
body: <p>Im building a small API and want to use oAuth2.0 for login and token handling.</p>
  
  <p>I have followed this step by step guide to get started: <a href="https://bshaffer.github.io/oauth2-server-php-docs/cookbook/" rel="nofollow">https://bshaffer.github.io/oauth2-server-php-docs/cookbook/</a></p>
  
  <p>Now this all works fine I can get my <code>access_token</code> by sending post request to the token.php from the link guide above:</p>
  
  <pre><code>//GET TOKEN
  $params = array(
    "client_id" =&gt; "testclient",
    "client_secret" =&gt; "testpass",
    "grant_type" =&gt; "client_credentials");
  
  $test=curl_req($pageURL."/api/v1/"."token.php", $params, "POST");
  
  echo "&lt;pre&gt;";
  print_r($test);
  </code></pre>
  
  <p>This outputs, as espected:</p>
  
  <blockquote>
  <pre><code>stdClass Object
  (
      [access_token] =&gt; b53a01a66d20760a8afef05bf36951eeba6b886d
      [expires_in] =&gt; 3600
      [token_type] =&gt; Bearer
      [scope] =&gt; 
  )
  </code></pre>
  </blockquote>
  
  <p>Now I have the token and want to do a request to resource.php as in the example link above. But I want to do it with <code>POST</code>, not <code>GET</code> as in the step by step guide link above. </p>
  
  <p>Is it possible to get the <code>access_token</code> verified with <code>POST</code> and if yes, how?</p>