<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Missing request credentials using API in APIs</title>
    <link>https://community.cisco.com/t5/apis/missing-request-credentials-using-api/m-p/4884149#M555</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I am missing something? how to get user list using API&lt;BR /&gt;
&lt;STRONG&gt;Error - {“code”: 40101, “message”: “Missing request credentials”, “stat”: “FAIL”}&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;Code -&lt;/STRONG&gt; &amp;lt;?php&lt;BR /&gt;
$d = date(“D j M Y G:i:s”);&lt;/P&gt;
&lt;P&gt;$curl = curl_init();&lt;/P&gt;
&lt;P&gt;curl_setopt_array($curl, array(&lt;BR /&gt;
CURLOPT_URL =&amp;gt; “&lt;A href="https://api-xxxxxx.duosecurity.com/admin/v1/users" rel="noopener nofollow ugc"&gt;https://■■■■■■■■■■■■■■■■■■■■■■■■■■/admin/v1/users&lt;/A&gt;”,&lt;BR /&gt;
CURLOPT_RETURNTRANSFER =&amp;gt; true,&lt;BR /&gt;
CURLOPT_ENCODING =&amp;gt; “”,&lt;BR /&gt;
CURLOPT_MAXREDIRS =&amp;gt; 10,&lt;BR /&gt;
CURLOPT_TIMEOUT =&amp;gt; 0,&lt;BR /&gt;
CURLOPT_FOLLOWLOCATION =&amp;gt; true,&lt;BR /&gt;
CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&lt;BR /&gt;
CURLOPT_CUSTOMREQUEST =&amp;gt; “GET”,&lt;BR /&gt;
CURLOPT_HTTPHEADER =&amp;gt; array(&lt;BR /&gt;
“Date: $d”,&lt;BR /&gt;
“Content-Type: application/x-www-form-urlencoded”,&lt;BR /&gt;
“Authorization: Basic”,&lt;BR /&gt;
“Integration key: xxxxxxxxxxx”,&lt;BR /&gt;
“Secret key: xxxxxxxxxxx” ,&lt;BR /&gt;
“Content-Type: application/x-www-form-urlencoded”&lt;BR /&gt;
),&lt;BR /&gt;
));&lt;/P&gt;
&lt;P&gt;$response = curl_exec($curl);&lt;/P&gt;
&lt;P&gt;curl_close($curl);&lt;BR /&gt;
echo $response;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 28 Oct 2020 09:58:22 GMT</pubDate>
    <dc:creator>userkam</dc:creator>
    <dc:date>2020-10-28T09:58:22Z</dc:date>
    <item>
      <title>Missing request credentials using API</title>
      <link>https://community.cisco.com/t5/apis/missing-request-credentials-using-api/m-p/4884149#M555</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I am missing something? how to get user list using API&lt;BR /&gt;
&lt;STRONG&gt;Error - {“code”: 40101, “message”: “Missing request credentials”, “stat”: “FAIL”}&lt;/STRONG&gt;&lt;BR /&gt;
&lt;STRONG&gt;Code -&lt;/STRONG&gt; &amp;lt;?php&lt;BR /&gt;
$d = date(“D j M Y G:i:s”);&lt;/P&gt;
&lt;P&gt;$curl = curl_init();&lt;/P&gt;
&lt;P&gt;curl_setopt_array($curl, array(&lt;BR /&gt;
CURLOPT_URL =&amp;gt; “&lt;A href="https://api-xxxxxx.duosecurity.com/admin/v1/users" rel="noopener nofollow ugc"&gt;https://■■■■■■■■■■■■■■■■■■■■■■■■■■/admin/v1/users&lt;/A&gt;”,&lt;BR /&gt;
CURLOPT_RETURNTRANSFER =&amp;gt; true,&lt;BR /&gt;
CURLOPT_ENCODING =&amp;gt; “”,&lt;BR /&gt;
CURLOPT_MAXREDIRS =&amp;gt; 10,&lt;BR /&gt;
CURLOPT_TIMEOUT =&amp;gt; 0,&lt;BR /&gt;
CURLOPT_FOLLOWLOCATION =&amp;gt; true,&lt;BR /&gt;
CURLOPT_HTTP_VERSION =&amp;gt; CURL_HTTP_VERSION_1_1,&lt;BR /&gt;
CURLOPT_CUSTOMREQUEST =&amp;gt; “GET”,&lt;BR /&gt;
CURLOPT_HTTPHEADER =&amp;gt; array(&lt;BR /&gt;
“Date: $d”,&lt;BR /&gt;
“Content-Type: application/x-www-form-urlencoded”,&lt;BR /&gt;
“Authorization: Basic”,&lt;BR /&gt;
“Integration key: xxxxxxxxxxx”,&lt;BR /&gt;
“Secret key: xxxxxxxxxxx” ,&lt;BR /&gt;
“Content-Type: application/x-www-form-urlencoded”&lt;BR /&gt;
),&lt;BR /&gt;
));&lt;/P&gt;
&lt;P&gt;$response = curl_exec($curl);&lt;/P&gt;
&lt;P&gt;curl_close($curl);&lt;BR /&gt;
echo $response;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Oct 2020 09:58:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/missing-request-credentials-using-api/m-p/4884149#M555</guid>
      <dc:creator>userkam</dc:creator>
      <dc:date>2020-10-28T09:58:22Z</dc:date>
    </item>
  </channel>
</rss>

