partner.php
740 Bytes
<?php
class Flora_Api_Service_Partner extends Flora_Api_Service
{
const API_REF_GENERATE = "partner/ref/generate";
const API_REF_CHECK = "partner/ref/check";
const API_REF_HISTORY = "partner/ref/history";
/**
* @return string
*/
public function generateRefCode()
{
return $this->call(self::API_REF_GENERATE);
}
/**
* @param $code
* @return bool
*/
public function checkRefCode($code)
{
return $this->call(self::API_REF_CHECK, array("code" => $code));
}
/**
* @param $code
* @return array|stdClass[]
*/
public function historyRefCode($code)
{
return $this->call(self::API_REF_HISTORY, array("code" => $code));
}
}