It has always been my plan to do some sort of RSS feed from eol making it possible for contest holders and site admins to use data from eol on their sites. Giving the recent developments I've sped up this proces and can now present the first version of an EOL API, powered by an rss feed.
You can access the rss feed directly from http://.elmaonline.net/rss/ and input the level indices of the levels you want data from.
Or you can, which I would recommend, use the API Class for PHP I've made. It makes it easy to access the rss feed, set the different parameters and gives you the data in a nice array. You can download it from http://elmaonline.net/rss/rss.zip which includes an example PHP page which also has information about the different parameters you can set. It includes a method for verifying a specific time, and a method for getting times from any number of levels in an array.
(You can also access these links from the help page on the EOL site.)
There's not a lot of functionality yet, but there is the most basic stuff like times, nick, datetime and placement. You can improve on the class ofcourse but in most cases you would need an update in the RSS feed to get more information. I will probably improve on it, but if there's something specific you need feel free to ask for it.
I can see some people have been putting filename (like: snaab101) as level id, this is NOT how you should do it. If you want snaab101 you search for it on eol site and look at the url http://elmaonline.net/?s=stats&p=level&l=43329 and the last number after l= (43329) is the id that you should put into the code as levelid.
To get internals here is an array with the ids for internals.
$intid = array(1 => 2, 2 => 4, 3 => 5, 4 => 6, 5 => 7, 6 => 8, 7 => 9, 8 => 10, 9 => 15, 10 => 59, 11 => 78, 12 => 109, 13 => 139, 14 => 219, 15 => 71, 16 =>51, 17 => 165, 18 => 57, 19 => 128, 20 => 197, 21 => 43, 22 => 107, 23 => 98, 24 => 100, 25 => 175, 26 => 192, 27 => 38, 28 => 198, 29 => 31, 30 => 16, 31 => 18, 32 => 164, 33 => 66, 34 => 131, 35 => 156, 36 => 357, 37 => 45, 38 => 13, 39 => 408, 40 => 412, 41 => 24, 42 => 416, 43 => 415, 44 => 95, 45 => 29, 46 => 33, 47 => 46, 48 => 21, 49 => 52, 50 => 257, 51 => 135, 52 => 133, 53 => 413, 54 => 17);
So for example if you want apple harvest you give it levelid 17.
Please don't misuse it, for example don't have it read the times from eol everytime your pages is loaded, rather have it check for new times every once in a while and update those to your own db, or verify the times everytime someone uploads a new time. And know that you are being logged (only to know if people misuse it).
This should hopefully make it possible for external contests to survive. I will be adding this functionality to cupSource, Kopasite at some point.
Elma Online API
Moderator: Moporators
- Kopaka
- 39mins club
- Posts: 6612
- Joined: 23 May 2002, 13:59
- Team: LAME
- Location: In a northern danish city beating YOUR record.
- Contact:
Elma Online API
Last edited by Kopaka on 28 Jan 2012, 15:56, edited 2 times in total.
Re: Elma Online API
This is great! And so are you!
Thanks a lot =) Keep up the good work!
Thanks a lot =) Keep up the good work!
Team HotHorses, and I'm converting to Icelandian now...
Re: Elma Online API
Yeah very good! I was just about thinking pming you to ask about the plans on this thing and now you post this. Gonna have a look at it how it works!
< roopemies> horror and frustrating and can't play, sounds just like you
Beer battle winner 2014 and 2015
Beer battle winner 2014 and 2015
Re: Elma Online API
RecSource now supports this. It is not possible to upload recs/times which cannot be verified from eol database.
< roopemies> horror and frustrating and can't play, sounds just like you
Beer battle winner 2014 and 2015
Beer battle winner 2014 and 2015
Re: Elma Online API
Could it be possible to make an entry point to download lev-rec, and/or current battle-last winning rec (at least retrieve corresponding URLs) ?
Tell me if 'm asking impossible/unrelated features
Tell me if 'm asking impossible/unrelated features
Re: Elma Online API
I dont get how the rss generating works. My feed is always empty. Could someone post an example? One with internals and one with externals.
Re: Elma Online API
Found internal01 on this url http://beta.elmaonline.net/rss/?makerss=1&levelid=2klisse wrote:I dont get how the rss generating works. My feed is always empty. Could someone post an example? One with internals and one with externals.
- Kopaka
- 39mins club
- Posts: 6612
- Joined: 23 May 2002, 13:59
- Team: LAME
- Location: In a northern danish city beating YOUR record.
- Contact:
Re: Elma Online API
Dunno if it's you klissse, but I can see some people have been putting filename (like: snaab101) as level id, this is NOT how you should do it. If you want snaab101 you search for it on eol site and look at the url http://beta.elmaonline.net/?s=stats&p=level&l=43329 and the last number after l= (43329) is the id that you should put into the code as levelid.
To get internals here is an array with the ids for internals.
$intid = array(1 => 2, 2 => 4, 3 => 5, 4 => 6, 5 => 7, 6 => 8, 7 => 9, 8 => 10, 9 => 15, 10 => 59, 11 => 78, 12 => 109, 13 => 139, 14 => 219, 15 => 71, 16 =>51, 17 => 165, 18 => 57, 19 => 128, 20 => 197, 21 => 43, 22 => 107, 23 => 98, 24 => 100, 25 => 175, 26 => 192, 27 => 38, 28 => 198, 29 => 31, 30 => 16, 31 => 18, 32 => 164, 33 => 66, 34 => 131, 35 => 156, 36 => 357, 37 => 45, 38 => 13, 39 => 408, 40 => 412, 41 => 24, 42 => 416, 43 => 415, 44 => 95, 45 => 29, 46 => 33, 47 => 46, 48 => 21, 49 => 52, 50 => 257, 51 => 135, 52 => 133, 53 => 413, 54 => 17);
So for example if you want apple harvest you give it levelid 17.
To get internals here is an array with the ids for internals.
$intid = array(1 => 2, 2 => 4, 3 => 5, 4 => 6, 5 => 7, 6 => 8, 7 => 9, 8 => 10, 9 => 15, 10 => 59, 11 => 78, 12 => 109, 13 => 139, 14 => 219, 15 => 71, 16 =>51, 17 => 165, 18 => 57, 19 => 128, 20 => 197, 21 => 43, 22 => 107, 23 => 98, 24 => 100, 25 => 175, 26 => 192, 27 => 38, 28 => 198, 29 => 31, 30 => 16, 31 => 18, 32 => 164, 33 => 66, 34 => 131, 35 => 156, 36 => 357, 37 => 45, 38 => 13, 39 => 408, 40 => 412, 41 => 24, 42 => 416, 43 => 415, 44 => 95, 45 => 29, 46 => 33, 47 => 46, 48 => 21, 49 => 52, 50 => 257, 51 => 135, 52 => 133, 53 => 413, 54 => 17);
So for example if you want apple harvest you give it levelid 17.
I think so, but not completely sure what you're saying. Like give it a levelname/id and it gives you the url back that will download the lev/rec for that level?totem wrote:Could it be possible to make an entry point to download lev-rec, and/or current battle-last winning rec (at least retrieve corresponding URLs) ?
Tell me if 'm asking impossible/unrelated features
Re: Elma Online API
at least the possibility to give current battle lev URL, last battle lev URL, and last battle rec URL
Re: Elma Online API
I don't understand the usage of this. How is a program supposed to know the level id of a cup level? I can only do it by searching for the level on eol, and then copying the download link, and extract the id from the link.
(It's kind of strange to have an api for something that you have to do manually, if that is the only way.)
(It's kind of strange to have an api for something that you have to do manually, if that is the only way.)
-
"leader status in the Elma against-the-system underground" - Abula
-
ElmaAutoGravityApples 2024
IncrElastoMania - Elma Simulation - Browser Game 2020
Elma Imager - Command Line Tool 2020
"leader status in the Elma against-the-system underground" - Abula
-
ElmaAutoGravityApples 2024
IncrElastoMania - Elma Simulation - Browser Game 2020
Elma Imager - Command Line Tool 2020