zarqon
Well-known member
I didn't know api.php existed until Veracity's recent post about it. It's great!
I started to convert my clan's Treasurer to use this rather than parse messages.php, but ran into a problem: mafia parses items and meat gained on this page, so I need to refresh inventory after loading kmails this way (thus more than negating the smaller server load gained by using api.php).
I'm visiting: api.php?pwd&what=kmail&format=php&count=100&for=StashBot
It happens whether I use the PHP or JSON format. I also noted that mafia decorates the page -- adding [use] and [equip] links, etc. Which is not a bug, but is still unnecessary.
I started to convert my clan's Treasurer to use this rather than parse messages.php, but ran into a problem: mafia parses items and meat gained on this page, so I need to refresh inventory after loading kmails this way (thus more than negating the smaller server load gained by using api.php).
I'm visiting: api.php?pwd&what=kmail&format=php&count=100&for=StashBot
It happens whether I use the PHP or JSON format. I also noted that mafia decorates the page -- adding [use] and [equip] links, etc. Which is not a bug, but is still unnecessary.