Page 1 of 1

Forum JSON API

Posted: Sat Dec 26, 2015 4:43 am
by BackRaw
Hi,

does this forum has a JSON API applied to it?
Like http:// forums.sourcepython.com?api=json&forum=someID&auth=someAuthKey returns a JSON string with all the information the forum provides, leaving the HTML out.

Posted: Sat Dec 26, 2015 10:42 am
by iPlayer
I believe /external.php is responsible for that, but it always returns a blank page. I guess they haven't turned on external syndication in their Admin CP.

But if they had, it would be
http://forums.sourcepython.com/external.php?type=js

Also look up this post http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/3957205-rss-feed-external-php-parameters?p=3957217#post3957217

Edit: that's not json, that's a script to include in your <script src=""></script> tags.
Supported values are js, rss, rss2 and xml.

Posted: Sat Dec 26, 2015 12:39 pm
by Ayuto
iPlayer wrote:I guess they haven't turned on external syndication in their Admin CP.
Yep, it's disabled. Moreover, you would also need an API key.

Posted: Fri Jan 01, 2016 1:20 pm
by BackRaw
Ayuto wrote:
iPlayer wrote:I guess they haven't turned on external syndication in their Admin CP.
Yep, it's disabled. Moreover, you would also need an API key.


Yeah, that's exactly what I mean :D
So, besides the fact it not being JSON, would it still be possible to generate an API Key for, say, a mobile app? I mean, if the forum's html is clean enough I might be able to get everything right without an API. I haven't looked at it much, yet.

Posted: Sat Jan 09, 2016 6:17 pm
by BackRaw
Alright, thanks :)