<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19317" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2014-01-10T08:18:28-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19317</id>

		<entry>
		<author><name><![CDATA[Qrx]]></name></author>
		<updated>2014-01-10T08:18:28-04:00</updated>

		<published>2014-01-10T08:18:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102459#p102459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102459#p102459"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102459#p102459"><![CDATA[
I have the same problem. I have been trying to work out how to handle requests/answers regarding a JSON website. <br><br>I tried contacting the OP, but he/she is not willing to share the code. <br><br>Is there anyone else that is able to give me a hint in the right direction?<br><br>What I need:<br><br>Request data from a JSON module and put the reply in usable strings so I can make the bot spit them out. The rest of the code I can figure out myself.<br><br>Thanks in advance!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12324">Qrx</a> — Fri Jan 10, 2014 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-01-31T10:14:39-04:00</updated>

		<published>2013-01-31T10:14:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100866#p100866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100866#p100866"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100866#p100866"><![CDATA[
I fully understand and respect that. <br><br>Meanwhile someone has responded to my request. We've got the script running for about 75% and he/she received my promised donation. In this case, everyone is happy <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Thu Jan 31, 2013 10:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2013-01-30T15:52:49-04:00</updated>

		<published>2013-01-30T15:52:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100849#p100849</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100849#p100849"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100849#p100849"><![CDATA[
Offering (or for that part, asking for) payment is not against the forum rules, to my best knowledge. Such arrangements would however be solely between the developer and the customer; if you get huzzled, don't blame egghelp.org or us moderators..<br><br>That said, given that your previous thread got junked for violating forum rules, this one is getting borderline going there as well...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jan 30, 2013 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-01-30T06:20:33-04:00</updated>

		<published>2013-01-30T06:20:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100838#p100838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100838#p100838"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100838#p100838"><![CDATA[
Is it against the rules if I mention I am willing to paypal 20usd (or euro for that matter) as a gift for a working script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Wed Jan 30, 2013 6:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-01-29T17:26:04-04:00</updated>

		<published>2013-01-29T17:26:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100831#p100831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100831#p100831"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100831#p100831"><![CDATA[
I'm really no scripter, but I guess this is some kind of start based on stuff I discovered.<br><div class="codebox"><p>Code: </p><pre><code>package require httppackage require jsonset query [::http::formatQuery release $query key 123456789]set http  [::http::geturl https://site.com/req.php -query $query]set json  [::http::data $http]set data  [::json::json2dict json]</code></pre></div>I hope someone is able and willing to help me out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Tue Jan 29, 2013 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-29T16:56:53-04:00</updated>

		<published>2013-01-29T16:56:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100828#p100828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100828#p100828"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100828#p100828"><![CDATA[
Yes for someone that is good at regexp it shouldnt be that hard <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> yet im not good at. But now everyone else that looks to this topic will know what you ask for and maybe they will help you... they now have the souce for the page so its only a regexp apart...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Tue Jan 29, 2013 4:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-01-29T16:40:24-04:00</updated>

		<published>2013-01-29T16:40:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100826#p100826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100826#p100826"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100826#p100826"><![CDATA[
curl "<a href="https://site.com/req.php?release=title%25&amp;key=123456789" class="postlink">https://site.com/req.php?release=title%&amp;key=123456789</a>"<br><br>[["TITLE.1","CAT-A",1350000000,"20","274","Comedy_Drama",0,""],["TITLE.2","CAT-B",1340000000,"19","906.0","Drama",0,""],["TITLE.3","CAT-C",1330000000,"6","246.00","Thriller",0,""]]<br><br>Like that. So a title, category, unix time, files, size, genre etc.<br><br>-edit-<br><br>And that needs to look like this in channel for the 1 result trigger:<br><br>bot: [title.1] [cat-a] [time] etc.<br><br>^ This is the first result from the get request.<br><br><br>The trigger for more results should PM all of the results from the get request and say in channel it's sending a pm.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Tue Jan 29, 2013 4:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-29T14:44:50-04:00</updated>

		<published>2013-01-29T14:44:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100824#p100824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100824#p100824"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100824#p100824"><![CDATA[
Well i need to see the page from where do you want the results to be get from so trigger that page using that API key and copy paste here the source of that page ot see how it looks like and maybe using regexp we will be able to retrive what you want from it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Tue Jan 29, 2013 2:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-01-29T14:40:48-04:00</updated>

		<published>2013-01-29T14:40:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100823#p100823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100823#p100823"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100823#p100823"><![CDATA[
The only way is with a get request to a php page on https. It will return JSON formatted results.<br><br>-edit: I've received an API key<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Tue Jan 29, 2013 2:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-29T14:39:49-04:00</updated>

		<published>2013-01-29T14:39:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100822#p100822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100822#p100822"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100822#p100822"><![CDATA[
And from where will the data's be retrieved? The best way to get the data's from is an XML/RSS page<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Tue Jan 29, 2013 2:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-01-29T14:37:34-04:00</updated>

		<published>2013-01-29T14:37:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100821#p100821</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100821#p100821"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100821#p100821"><![CDATA[
For users, the program will work like this.<br><br>user: !triggera &lt;title&gt;<br>bot: &lt;most recent result from database&gt;<br><br>user: !triggerb &lt;title&gt;<br>bot: pm: &lt;10 most recent results from database&gt;<br><br>The results contain information like title, date, size, category etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Tue Jan 29, 2013 2:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Madalin]]></name></author>
		<updated>2013-01-29T14:35:12-04:00</updated>

		<published>2013-01-29T14:35:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100820#p100820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100820#p100820"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100820#p100820"><![CDATA[
If you can be more specific... examples/commands it would help whoever looks at this post alot including me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6396">Madalin</a> — Tue Jan 29, 2013 2:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[x0x]]></name></author>
		<updated>2013-01-29T13:28:55-04:00</updated>

		<published>2013-01-29T13:28:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100819#p100819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100819#p100819"/>
		<title type="html"><![CDATA[API calls with JSON formatted results for public/pm output]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100819#p100819"><![CDATA[
I am looking for a script that creates API requests based on public user input. <br><br>The API requests return JSON formatted data from a webserver, which needs to be formatted to a pre-defined format and displayed in channel or pm (depending on the initial request).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10486">x0x</a> — Tue Jan 29, 2013 1:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
