<?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: Get Data from SAS Web Application Via SAS Viya API in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638661#M727</link>
    <description>&lt;P&gt;Hey &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214450"&gt;@joeFurbee&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you so much for your quick response.&lt;/P&gt;&lt;P&gt;I tried the code you gave me but Its giving some errors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 /* Load macros and obtain app token. Admin Task. */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 filename mc url "&lt;A href="https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas" target="_blank" rel="noopener"&gt;https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas&lt;/A&gt;";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 %inc mc;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The connection has timed out..&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Cannot open %INCLUDE file MC.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 %let client=new%sysfunc(ranuni(0),hex16.);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 %let secret=MySecret;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 %mv_getapptoken(client_id=&amp;amp;client,client_secret=&amp;amp;secret)&lt;/DIV&gt;&lt;DIV class="sasError"&gt;-&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Apparent invocation of macro MV_GETAPPTOKEN not resolved.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;96&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;frankly speaking I am having no idea about SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My simple requirement is to get data through SAS API so didn't created any SAS Web App&lt;/P&gt;&lt;P&gt;just got the example or demo app from the SAS itself.&lt;/P&gt;&lt;P&gt;Its not having any admin console, nor configuration. It's just having SAS Drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want the credentials for that demo app I can provide It to you.&lt;/P&gt;&lt;P&gt;So, you can look into it and suggest me something on it.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 13:44:37 GMT</pubDate>
    <dc:creator>harshSASCIM</dc:creator>
    <dc:date>2020-04-09T13:44:37Z</dc:date>
    <item>
      <title>Get Data from SAS Web Application Via SAS Viya API</title>
      <link>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638603#M721</link>
      <description>&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a demo Web Application from SAS.&lt;/P&gt;&lt;P&gt;I am doing and R&amp;amp;D for accessing SAS Web Apps data without accessing it using SAS Viya API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing an issue where I have to register a client and to get the token for the register client to access the APIs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the one trail Web App from your SAS which is &lt;A href="https://pdcesx18027.sas.com" target="_blank"&gt;https://pdcesx18027.sas.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Now to connect with the API to access from other apps such as postman or any&lt;/P&gt;&lt;P&gt;web app, I need to register the client and get the token to access the other APIs too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that I am not able to register the client as described in the URL of yours.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.sas.com/apis/rest/Topics/#configuring-your-sas-environment-for-api-use" target="_blank"&gt;https://developer.sas.com/apis/rest/Topics/#configuring-your-sas-environment-for-api-use&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried almost everything to get the token to access it but I am not able to register the client&lt;/P&gt;&lt;P&gt;For the given demo URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to register a client in a demo app?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I didn't find any configuration in Environment Manager to register the client in demo app.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help me out for this one?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 06:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638603#M721</guid>
      <dc:creator>harshSASCIM</dc:creator>
      <dc:date>2020-04-09T06:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get Data from SAS Web Application Via SAS Viya API</title>
      <link>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638605#M722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, to get the api key, the operating system account must be an admin (in order to access the consul token).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just run the following code in SAS Studio:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Load macros. If you don't have internet access, download and compile. */
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;

/*  Register client. Admin Task. */
 %mv_registerclient(outds=client) 

/* open the URL from the log, click "open id" and paste the Authorization Code below. */ 
%mv_tokenauth(inds=client,code=wKDZYTEPK6) &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTE -&amp;nbsp;&lt;/STRONG&gt;the names of these macros have been updated in v2 of MacroCore to be more intuitive.&amp;nbsp; I've updated the example above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option is to use the SASjs Viya Token generator (assumes your Job Execution service is running with an administrator account):&amp;nbsp;&amp;nbsp;&lt;A href="https://sasjs.io/apps/#viya-client-token-generator" target="_self"&gt;https://sasjs.io/apps/#viya-client-token-generator&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More SAS Macros for interacting with the Viya APIs are available on github (MIT licence) here:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/sasjs/core" target="_blank" rel="noopener"&gt;https://github.com/sasjs/core&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A video showing how to build a web app on SAS in just 5 minutes, using this technique, is available here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=vSNBea_M8yU" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=vSNBea_M8yU&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 06:15:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638605#M722</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-05-30T06:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get Data from SAS Web Application Via SAS Viya API</title>
      <link>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638640#M723</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/321345"&gt;@harshSASCIM&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also refer to this blog post&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sgf/2019/01/25/authentication-to-sas-viya/" target="_self"&gt;Authentication to SAS Viya: a couple of approaches&lt;/A&gt;. I outline the client registration steps there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 11:26:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638640#M723</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2020-04-09T11:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get Data from SAS Web Application Via SAS Viya API</title>
      <link>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638661#M727</link>
      <description>&lt;P&gt;Hey &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214450"&gt;@joeFurbee&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you so much for your quick response.&lt;/P&gt;&lt;P&gt;I tried the code you gave me but Its giving some errors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 /* Load macros and obtain app token. Admin Task. */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77 filename mc url "&lt;A href="https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas" target="_blank" rel="noopener"&gt;https://raw.githubusercontent.com/macropeople/macrocore/master/mc_all.sas&lt;/A&gt;";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 %inc mc;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The connection has timed out..&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Cannot open %INCLUDE file MC.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;79 %let client=new%sysfunc(ranuni(0),hex16.);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;80 %let secret=MySecret;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;81 %mv_getapptoken(client_id=&amp;amp;client,client_secret=&amp;amp;secret)&lt;/DIV&gt;&lt;DIV class="sasError"&gt;-&lt;/DIV&gt;&lt;DIV class="sasError"&gt;180&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Apparent invocation of macro MV_GETAPPTOKEN not resolved.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;96&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;frankly speaking I am having no idea about SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My simple requirement is to get data through SAS API so didn't created any SAS Web App&lt;/P&gt;&lt;P&gt;just got the example or demo app from the SAS itself.&lt;/P&gt;&lt;P&gt;Its not having any admin console, nor configuration. It's just having SAS Drive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want the credentials for that demo app I can provide It to you.&lt;/P&gt;&lt;P&gt;So, you can look into it and suggest me something on it.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 13:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638661#M727</guid>
      <dc:creator>harshSASCIM</dc:creator>
      <dc:date>2020-04-09T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Data from SAS Web Application Via SAS Viya API</title>
      <link>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638848#M730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/321345"&gt;@harshSASCIM&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which free trial did you sign up for? Can you provide the page where you signed up? It very well could be that this trial does not support API access. But I can't determine that until I know which trial you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 01:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638848#M730</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2020-04-10T01:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Data from SAS Web Application Via SAS Viya API</title>
      <link>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638867#M731</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/214450"&gt;@joeFurbee&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the trial from the sas itself.&lt;/P&gt;&lt;P&gt;Which is currently not available on the SAS due to they are not having business.&lt;/P&gt;&lt;P&gt;Now they are just providing the trial for the COVID-19 reset of the trail are removed temporarily.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sas.com/en_in/trials.html" target="_blank"&gt;https://www.sas.com/en_in/trials.html&lt;/A&gt;&amp;nbsp;you can refer the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a credential of my demo URL.&lt;/P&gt;&lt;P&gt;URL: &lt;A href="https://pdcesx18027.sas.com" target="_blank"&gt;https://pdcesx18027.sas.com&lt;/A&gt;&lt;BR /&gt;UID: harsh@cimcon.com&lt;BR /&gt;PSWD: &lt;A href="mailto:Cim@1234" target="_blank"&gt;Cim@1234&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use it. As its not having any sensitive data.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 04:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Get-Data-from-SAS-Web-Application-Via-SAS-Viya-API/m-p/638867#M731</guid>
      <dc:creator>harshSASCIM</dc:creator>
      <dc:date>2020-04-10T04:28:35Z</dc:date>
    </item>
  </channel>
</rss>

