<?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 What is a suggested method for accessing Splunk API via Custom REST Endpoint? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/What-is-a-suggested-method-for-accessing-Splunk-API-via-Custom/m-p/588447#M10449</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have setup a Splunk app that has Custom REST Endpoints which make Splunk API calls, currently via the python requests module.&amp;nbsp; I am authenticating to the API by grabbing the session key via the the Custom REST Endpoint's handler.&amp;nbsp; This works but I am wondering if either the SDK or Splunk python libraries can handle this a little more gracefully or not?&amp;nbsp; I noticed when building the dashboards that I can just call service.METHOD in SplunkJS to hit the Custom REST Endpoints so wondering if there is a python class/method that handles the authentication, etc such as this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 22:21:58 GMT</pubDate>
    <dc:creator>nohc</dc:creator>
    <dc:date>2022-03-10T22:21:58Z</dc:date>
    <item>
      <title>What is a suggested method for accessing Splunk API via Custom REST Endpoint?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/What-is-a-suggested-method-for-accessing-Splunk-API-via-Custom/m-p/588447#M10449</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have setup a Splunk app that has Custom REST Endpoints which make Splunk API calls, currently via the python requests module.&amp;nbsp; I am authenticating to the API by grabbing the session key via the the Custom REST Endpoint's handler.&amp;nbsp; This works but I am wondering if either the SDK or Splunk python libraries can handle this a little more gracefully or not?&amp;nbsp; I noticed when building the dashboards that I can just call service.METHOD in SplunkJS to hit the Custom REST Endpoints so wondering if there is a python class/method that handles the authentication, etc such as this.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 22:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/What-is-a-suggested-method-for-accessing-Splunk-API-via-Custom/m-p/588447#M10449</guid>
      <dc:creator>nohc</dc:creator>
      <dc:date>2022-03-10T22:21:58Z</dc:date>
    </item>
  </channel>
</rss>

