How to use API

CarNagE
103
Battle Gorge Royale
Posts
5
Location
Poland
Joined
7 May 2005
27 October 2014 - 05:03 EDT
#1
Hey
I have a question about website API. I would like to make 2 widgets for my site http://naturalselection2.pl/news.php

With MATCH SCHEDULED

example:

Div X TEAM1 vs. TEAM2 (twitch.tv/CASTER)

And

MATCHES PLAYED

example:
Div X TEAM1 vs TEAM2 00/Sep/14 07:00 4 - 0

It would be great if json would have links to team rosters.

I have searched for any info on using API on https://github.com/ENSL/ensl.org

I can do it with wrapers but it would slow my site much. Any chance any one could point me in the right direction?

Regards
Artur "CarNagE" Rodak
No ups No game
CarNagE
103
Battle Gorge Royale
Posts
5
Location
Poland
Joined
7 May 2005
12 November 2014 - 08:12 EST
#2
I didn't receive any help from ensl.org web masters. So i had to use scraping method to get my info from the site.

If any one wish to use the code for his own site here it is.

http://www.pastebin.pl/view/0fe3f925

And if you wish to see how it works visit www.naturalselection2.pl

It's sad that such an important PR things are left not answered...
No ups No game
ryssk
Noavatar
Ram Ranch
Posts
319
Location
Sundsvall, Sweden
Joined
3 November 2012
12 November 2014 - 08:28 EST
#3
CarNagE says
I didn't receive any help from ensl.org web masters. So i had to use scraping method to get my info from the site.

If any one wish to use the code for his own site here it is.

http://www.pastebin.pl/view/0fe3f925

And if you wish to see how it works visit www.naturalselection2.pl

It's sad that such an important PR things are left not answered...


Try to add an hyperlink for the casters in the calender also :) Nice job anyways!
Pelargir
5291
We're grumpy
Posts
452
Location
Lyon, France
Joined
6 April 2013
12 November 2014 - 09:07 EST
#4
Sorry for you for not having got any help from our Webmasters but those are really busy for now a few months and are not even able to work on the current website. In other words, our Webmasters are away actually and couldn't / can't take their time in any other stuff than the one related to their real life.

Good job anyway for what you've done.
“It's a dangerous business, Frodo, going out your door. You step onto the road, and if you don't keep your feet, there's no knowing where you might be swept off to.”
New Reply