<?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 Re: Translating Curl Command with Client ID and Secret in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Translating-Curl-Command-with-Client-ID-and-Secret/m-p/792871#M254067</link>
    <description>Does this &lt;A href="https://blogs.sas.com/content/sgf/2020/07/30/curl-to-proc-http/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2020/07/30/curl-to-proc-http/&lt;/A&gt; help?</description>
    <pubDate>Thu, 27 Jan 2022 14:30:30 GMT</pubDate>
    <dc:creator>JosvanderVelden</dc:creator>
    <dc:date>2022-01-27T14:30:30Z</dc:date>
    <item>
      <title>Translating Curl Command with Client ID and Secret</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Translating-Curl-Command-with-Client-ID-and-Secret/m-p/792663#M253983</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have found a lot of value in this community and appreciate all the help thus far.&lt;BR /&gt;&lt;BR /&gt;I am needing to translate a CURL command that seems to be working fine in the command prompt. The command returns an access token. Instead of having to navigate out of SAS I would prefer to have this access token returned in a dataset that I can reference. Here is the CURL that works in the command prompt:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;curl -X POST -d “client_id=XXXXXXXXXXXXXXXXXXXXXXXXX&amp;amp;client_secret=XXXXXXXXXXXXXXXXXXXXXX&amp;amp;grant_type=client_credentials” &lt;A href="https://api.turn14.com/v1/token" target="_blank"&gt;https://api.turn14.com/v1/token&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried this without any success:&lt;BR /&gt;filename resp temp;&lt;BR /&gt;proc http&lt;BR /&gt;url="&lt;A href="https://api.turn14.com/v1/token" target="_blank"&gt;https://api.turn14.com/v1/token&lt;/A&gt;"&lt;BR /&gt;webusername="XXXXXXXXXXXXXXXXXXXXXXXXX"&lt;BR /&gt;webpassword="XXXXXXXXXXXXXXXXXXXXXX"&lt;BR /&gt;out=resp&lt;BR /&gt;ct="application/x-www-form-urlencoded"&lt;BR /&gt;method="POST";&lt;BR /&gt;debug level=2;&lt;BR /&gt;headers "Accept"="application/json";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on what I need to change to get this to work?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 20:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Translating-Curl-Command-with-Client-ID-and-Secret/m-p/792663#M253983</guid>
      <dc:creator>CR-Horton</dc:creator>
      <dc:date>2022-01-26T20:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Translating Curl Command with Client ID and Secret</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Translating-Curl-Command-with-Client-ID-and-Secret/m-p/792871#M254067</link>
      <description>Does this &lt;A href="https://blogs.sas.com/content/sgf/2020/07/30/curl-to-proc-http/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2020/07/30/curl-to-proc-http/&lt;/A&gt; help?</description>
      <pubDate>Thu, 27 Jan 2022 14:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Translating-Curl-Command-with-Client-ID-and-Secret/m-p/792871#M254067</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2022-01-27T14:30:30Z</dc:date>
    </item>
  </channel>
</rss>

