<?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/19617" />

	<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-02-12T07:09:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2014-02-12T07:09:05-04:00</updated>

		<published>2014-02-12T07:09:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102591#p102591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102591#p102591"/>
		<title type="html"><![CDATA[Marvel API]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102591#p102591"><![CDATA[
The results you are looking at are in JSON format. Here's an example of such a request.<div class="codebox"><p>Code: </p><pre><code>package require httppackage require jsonset query [::http::formatQuery name $name key 123456789]set http  [::http::geturl https://site.com/api/ -query $query]set json  [::http::data $http]set data  [::json::json2dict json]</code></pre></div>and then use <a href="http://www.tcl.tk/man/tcl8.6/TclCmd/dict.htm" class="postlink">dict</a> to get stuff you want from $data variable.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Feb 12, 2014 7:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spithash]]></name></author>
		<updated>2014-02-12T03:46:49-04:00</updated>

		<published>2014-02-12T03:46:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102590#p102590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102590#p102590"/>
		<title type="html"><![CDATA[Marvel API]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102590#p102590"><![CDATA[
Hello there!<br><br>Some friends requested a script that could fetch info from <a href="http://developer.marvel.com/docs" class="postlink">http://developer.marvel.com/docs</a> and I thought I should give it a try and see if someone's offering to help me around.<br><br>To get info from that API you need an account and an API key (which both are easy to get on their website, took me 2 minutes to get everything straight)<br><br>So... after I generated the API key I was able to search for "Spider-Man" for example and got a bunch of information from the first section "<br> <strong class="text-strong">/v1/public/characters</strong>" such as:<br><div class="codebox"><p>Code: </p><pre><code>        "id": 1009610,        "name": "Spider-Man",        "description": "Bitten by a radioactive spider, high school student Peter Parker gained the speed, strength and powers of a spider. Adopting the name Spider-Man, Peter hoped to start a career using his new abilities. Taught that with great power comes great responsibility, Spidey has vowed to use his powers to help people.",        "modified": "2013-10-24T13:52:13-0400",        "thumbnail": {          "path": "http://i.annihil.us/u/prod/marvel/i/mg/3/50/526548a343e4b",</code></pre></div><br>So I was hoping if someone could help me scrap all that information and post it in the channel for example by character searching !marvel Spider-Man<br><br>I sure hope I explained everything needed <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9145">spithash</a> — Wed Feb 12, 2014 3:46 am</p><hr />
]]></content>
	</entry>
	</feed>
