<?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 Does anyone have example code that uses Google's API? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-have-example-code-that-uses-Google-s-API/m-p/52737#M11149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to submit a Google search, from SAS, probably using proc http.&amp;nbsp; However, as I've never done it, I'm not sure where to begin.&amp;nbsp; Yes, I already have an API key, but don't know what code to nest it in.&amp;nbsp; Basically, I just looking to do a search and trap all of the results in an output file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 19:08:30 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-11-22T19:08:30Z</dc:date>
    <item>
      <title>Does anyone have example code that uses Google's API?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-have-example-code-that-uses-Google-s-API/m-p/52737#M11149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to submit a Google search, from SAS, probably using proc http.&amp;nbsp; However, as I've never done it, I'm not sure where to begin.&amp;nbsp; Yes, I already have an API key, but don't know what code to nest it in.&amp;nbsp; Basically, I just looking to do a search and trap all of the results in an output file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 19:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-have-example-code-that-uses-Google-s-API/m-p/52737#M11149</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-22T19:08:30Z</dc:date>
    </item>
    <item>
      <title>Does anyone have example code that uses Google's API?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-have-example-code-that-uses-Google-s-API/m-p/52738#M11150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;* As far as I can tell, this are the minimum things you need to have a result sent;&lt;/P&gt;&lt;P&gt;* key - your API key;&lt;/P&gt;&lt;P&gt;* cx - goto your google APIs Console.&amp;nbsp; Click on the '?' button.&amp;nbsp; Click 'Try me out!'.&amp;nbsp; Grab the cx var from the spawned url;&lt;/P&gt;&lt;P&gt;* q - your search query;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename in temp;&lt;/P&gt;&lt;P&gt;filename out temp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; file in;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input; &lt;/P&gt;&lt;P&gt;&amp;nbsp; put _infile_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; datalines4;&lt;/P&gt;&lt;P&gt;key=myapikey&amp;amp;cx=mycxid&amp;amp;q=my+query&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;proc http in=in out=out url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.googleapis.com/customsearch/v1"&gt;https://www.googleapis.com/customsearch/v1&lt;/A&gt;&lt;SPAN&gt;" method="get"; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* because of issues with my installation I cannot use Proc HTTP, I should probably fix that, but as such I cannot actually test that this works in this context...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 22:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-have-example-code-that-uses-Google-s-API/m-p/52738#M11150</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-11-22T22:02:42Z</dc:date>
    </item>
    <item>
      <title>Does anyone have example code that uses Google's API?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Does-anyone-have-example-code-that-uses-Google-s-API/m-p/52739#M11151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matt, Very much appreciated!&amp;nbsp; I won't be able to test it until tomorrow or Thursday, but that got me exactly what I was missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 22:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Does-anyone-have-example-code-that-uses-Google-s-API/m-p/52739#M11151</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-22T22:47:18Z</dc:date>
    </item>
  </channel>
</rss>

