<br><br><div class="gmail_quote">2011/2/17 Matty Sarro <span dir="ltr"><<a href="mailto:msarro@gmail.com">msarro@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
This may be kind of a stupid question, so please be gentle.<br>
I've only ever used most programming in the past when shell scripting<br>
couldn't handle what I needed done. So, I rarely dabble with things<br>
like API's, or even python-isms. I just program to get things done.<br>
<br>
Well, that's about to change :)<br>
I am in charge of deploying a platform to allow people across my<br>
company to access a variety of crunched metrics using splunk. I need<br>
to allow access into the data using Splunk's RESTful API, which is<br>
implemented in both java and python. The thing is, I have no idea how<br>
to do that. I've looked through some of the documentation, and it has<br>
me start a pydoc server on the system but when i navigate to the page<br>
it just shows listings of functions. The descriptions would be great,<br>
except they don't really tell me a lot. For instance, nothing really<br>
seems to say "fetchRecord(user_name) fetches all records matching a<br>
particular user name". Further, how do I actually use the API?<br>
<br>
I appreciate any of the pointers you can offer. Its a big part of this<br>
project, but my minor knowledge in programming isn't helping me much<br>
here.<br>
-Matty<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a></font></blockquote><div> </div></div>Well things are not always (almost never) documented as you would like.<br>

A suggestion I can give is to use ipython and play with the modules.<br>Pass something in and see what you get.<br><br>And better yet write some unit tests to see if the functions do what you expect they do.<br>If the API is not completely dumb you should understand quickly how to use it.<br>

<br>Also some other code that uses that library might be useful.