SzieberthAdam
![](./modules/PNphpBB2/images/avatars/upload/13578547765f9da9bbc03f1.png)
Joined: Aug 31, 2008
|
  Posted:
Jul 01, 2015 - 13:38 |
|
Suggestions:
* Would be nice to have all the inducements with their respectable cost in the roster endpoint.
* I would also welcome an <iconSize>S/M/L</iconSize> property and in the backend to make us able to customize the look of abstract icons entirely. (https://fumbbl.com/FUMBBL.php?page=bugs&op=view&id=1821) |
_________________
![Image Image](https://fumbbl.com/i/648668) ![Image Image](https://fumbbl.com/i/648937) ![Image Image](https://fumbbl.com/i/648934) |
|
akaRenton
![](./modules/PNphpBB2/images/avatars/upload/1822136428525dd12e23fb9.gif)
Joined: Apr 15, 2008
|
  Posted:
Jul 02, 2015 - 14:24 |
|
|
SzieberthAdam
![](./modules/PNphpBB2/images/avatars/upload/13578547765f9da9bbc03f1.png)
Joined: Aug 31, 2008
|
  Posted:
Jul 16, 2015 - 20:28 |
|
Suggestions:
* Roster endpoint: roster.positions.position should have id (quantity, and cost) only since the rest is redundant with Position endpoint results
(* Position endpoint should have no quantity and cost.)
With the parts in parenthesis I implicitly suggest that Positions should get soft linked to Rosters instead of the current hard links. That way it would be easy to build new rosters using existing positions. It would make possible to easily get top lists like Overall Zombie. To let this all current Zombie positions should get merged. Of course all top performances should get recorded by (division_id, roster_id, position_id) tuple.
If merging is a no option, still my firt suggestion excluding the parenthesed part is valid.
@akaRenton: I am slowly working on a researcheable database which will do that. |
_________________
![Image Image](https://fumbbl.com/i/648668) ![Image Image](https://fumbbl.com/i/648937) ![Image Image](https://fumbbl.com/i/648934) |
|
SzieberthAdam
![](./modules/PNphpBB2/images/avatars/upload/13578547765f9da9bbc03f1.png)
Joined: Aug 31, 2008
|
  Posted:
Oct 30, 2015 - 16:17 |
|
ruleset/list returns an empty list
suggestion: would be nice to get the ruleset of a match somehow |
_________________
![Image Image](https://fumbbl.com/i/648668) ![Image Image](https://fumbbl.com/i/648937) ![Image Image](https://fumbbl.com/i/648934) |
|
Shraaaag
![](./modules/PNphpBB2/images/avatars/upload/17020686724cee96b501fd2.jpg)
Joined: Feb 15, 2004
|
  Posted:
Feb 20, 2016 - 08:28 |
|
Has there been more work on this? No pressure, just curious |
_________________
![Image Image](https://fumbbl.com/i/345523) |
|
koadah
![](./modules/PNphpBB2/images/avatars/upload/11621913544284994cadd9f.gif)
Joined: Mar 30, 2005
|
  Posted:
Jul 04, 2016 - 19:58 |
|
|
JellyBelly
![](./modules/PNphpBB2/images/avatars/upload/17444641784a9adbfb5d841.jpg)
Joined: Jul 08, 2009
|
  Posted:
Jul 24, 2016 - 00:40 |
|
I'm interested in trying my hand at making some scripts to use the FUMBBL API to pull/process some match data, but I could really use some tips on how to get started, as I have fairly limited experience of Javascript or web coding in general.
Basically, what I want to do is as follows:
- Make a list of all teams that belong to a particular group
- Pull data on matches each team has played within a particular date range
- Do some work on that match result data and output something useful
So, firstly, can anyone tell me what FUMBBL API calls would be best to use for this? Secondly, I assume there must be some fairly simple way to parse the xml data from the API call and convert it into data structures that can easily be processed in Javascript? If someone could tell me the easiest way of doing that, it would be a big help.
Another question that I'm curious about - what is the advantage of the new FUMBBL API over the old one? |
_________________ "Opinions are like arseholes, everybody's got them and they all stink." - The protagonist, Fallout 2
"Go for the eyes, Boo! Go for the eyes!!" ![Razz](./modules/PNphpBB2/images/smiles/icon_razz.gif) |
|
koadah
![](./modules/PNphpBB2/images/avatars/upload/11621913544284994cadd9f.gif)
Joined: Mar 30, 2005
|
  Posted:
Jul 24, 2016 - 01:48 |
|
|
JellyBelly
![](./modules/PNphpBB2/images/avatars/upload/17444641784a9adbfb5d841.jpg)
Joined: Jul 08, 2009
|
  Posted:
Jul 24, 2016 - 02:10 |
|
Hi koadah, cool thanks for responding
I was thinking of pulling the data into the browser and processing it with Javascript, although I guess I could make some sort of widget instead that would download the data to the user's PC for processing. I'm not necessarily looking to integrate it into a webpage at this point, so I guess I can be flexible, in term of method and language.
What would you recommend as a good place to start? |
_________________ "Opinions are like arseholes, everybody's got them and they all stink." - The protagonist, Fallout 2
"Go for the eyes, Boo! Go for the eyes!!" ![Razz](./modules/PNphpBB2/images/smiles/icon_razz.gif) |
|
koadah
![](./modules/PNphpBB2/images/avatars/upload/11621913544284994cadd9f.gif)
Joined: Mar 30, 2005
|
  Posted:
Jul 24, 2016 - 02:28 |
|
|
JellyBelly
![](./modules/PNphpBB2/images/avatars/upload/17444641784a9adbfb5d841.jpg)
Joined: Jul 08, 2009
|
  Posted:
Jul 24, 2016 - 02:50 |
|
Ok, I'll check with Christer about pulling it into the browser. Out of interest, why do you think that might be restricted, compared with pulling the data to a server?
I guess as an alternative to the webpage, I could make an app that would print the output to a text file, or in a window on the screen, so it can just be copied and pasted.
I've done a bit of basic coding in C/C++. I haven't got much experience of higher-level languages, but Javascript looks fairly straightforward, so maybe the webpage would be the way to go (if it is a viable option). Looks like there is an xml Document Object Model (DOM) available in Javascript, which should allow me to easily access/manipulate xml data? |
_________________ "Opinions are like arseholes, everybody's got them and they all stink." - The protagonist, Fallout 2
"Go for the eyes, Boo! Go for the eyes!!" ![Razz](./modules/PNphpBB2/images/smiles/icon_razz.gif) |
|
koadah
![](./modules/PNphpBB2/images/avatars/upload/11621913544284994cadd9f.gif)
Joined: Mar 30, 2005
|
  Posted:
Jul 24, 2016 - 03:07 |
|
By default browsers won't allow you to pull data from a different domain.
Christer can allow it by applying CORS to the API. I don't know if he has.
There might be sneaky ways around it. Greasemonkey? I don't know much about that.
If CORS is enabled or you can get Christer to enable it that would save you a load of grief. |
_________________
O[L]C 2016 Swiss! - April ---- All Star Bowl - Teams of Stars - 2 more teams needed |
|
Shraaaag
![](./modules/PNphpBB2/images/avatars/upload/17020686724cee96b501fd2.jpg)
Joined: Feb 15, 2004
|
  Posted:
Jul 24, 2016 - 11:38 |
|
At the time I made my script, I used what I knew. It's far from perfect, but it's gotten so complicated (read: spaghetti code), I keep postponing rewriting it.
Are you planning on making something for yourself, something anyone can download and use? If you plan on making scripts that process alot of matches, I would suggest you pull it down, process and save it locally/server-side, as the match data doesn't change once the match is done. It would save abit of time everytime you have to fetch the data.
On the FUMBBL API page, which koadah already mentionned, I've added the new FUMBBL API commands as much as I could remember. According to Christer there aren't commands for everything the old FUMBBL API have, but I'm sure if the demand/interest is higher Christer might be motivated to add more. |
_________________
![Image Image](https://fumbbl.com/i/345523) |
|
Brainsaw
![](./modules/PNphpBB2/images/avatars/upload/2102530506473c8070ec740.gif)
Joined: Sep 27, 2005
|
  Posted:
Jul 24, 2016 - 19:28 |
|
It would be awesome to provide the full Match Data, as used in the newly provided Dice Statistics by Candlejack. Can this data be aquired via API in some way? Or is it planned? |
|
|
JellyBelly
![](./modules/PNphpBB2/images/avatars/upload/17444641784a9adbfb5d841.jpg)
Joined: Jul 08, 2009
|
  Posted:
Jul 25, 2016 - 02:37 |
|
Brainsaw wrote: | It would be awesome to provide the full Match Data, as used in the newly provided Dice Statistics by Candlejack. Can this data be aquired via API in some way? Or is it planned? |
Good question. How did he do that? |
_________________ "Opinions are like arseholes, everybody's got them and they all stink." - The protagonist, Fallout 2
"Go for the eyes, Boo! Go for the eyes!!" ![Razz](./modules/PNphpBB2/images/smiles/icon_razz.gif) |
|
|
| |