API BattleLog with PHP