Forum JSON API

General discussion for off-topic subjects.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Forum JSON API

Postby BackRaw » Sat Dec 26, 2015 4:43 am

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.
My Github repositories:

Source.Python: https://github.com/backraw
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Postby iPlayer » Sat Dec 26, 2015 10:42 am

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.
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Sat Dec 26, 2015 12:39 pm

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.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Fri Jan 01, 2016 1:20 pm

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.
User avatar
BackRaw
Senior Member
Posts: 537
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany
Contact:

Postby BackRaw » Sat Jan 09, 2016 6:17 pm

Alright, thanks :)

Return to “Whatever”

Who is online

Users browsing this forum: No registered users and 15 guests