WowPress-Tailwind/theme/wowpress/Api/WoWAudit.php

23 lines
483 B
PHP
Raw Normal View History

2024-04-15 23:07:29 +02:00
<?php
namespace WoWPress\Api;
class WoWAudit extends Api{
protected $api_url = "https://www.wowaudit.com/v1/";
public function getRaids($include_past=false)
{
return $this->get('raids', ['include_past' => $include_past?"true":"false"],true,5);
}
2024-04-22 15:38:22 +02:00
public function getRaid($id,$force)
2024-04-15 23:07:29 +02:00
{
2024-04-22 15:38:22 +02:00
return $this->get("raids/$id", [], true, $force?-1:5);
2024-04-15 23:07:29 +02:00
}
public function getRoster(){
return $this->get("characters",[],true,5);
}
}