Showing Posts For Zies.8142:

PHP 5.3+ API Wrapper (examples)

in API Development

Posted by: Zies.8142

Zies.8142

Thanks for providing this. I would have had no idea how to do all that myself.

I did spot a tiny error in Service.php.

public function getMatchDetails(array $parameters)
	{
		if(!array_key_exists('match_id', $parameters)) {
			throw new \Exception('match_id is required');
		}
		return $this->_processRequest(self::MATCH_URI, $parameters);
	}

MATCH_URI -> MATCH_DETAIL_URI

Was wondering a while why the output was looking so weird :)