Fix snippets to use the latest splunk.client apis
fix realtime and splresult snippet