protected function _scopedVerify($class, $params = null, $apiKey = null) { $requestor = new Prove_ApiRequestor($apiKey); $url = self::classUrl($class); $url = $url . "/" . $params['id'] . "/pin"; $params = array('pin' => $params['pin']); list($response, $apiKey) = $requestor->request('post', $url, $params); return Prove_Util::convertToProveObject($response, $apiKey); }
public function __toArray($recursive = false) { if ($recursive) { return Prove_Util::convertProveObjectToArray($this->_values); } else { return $this->_values; } }
public function all($params = null) { $requestor = new Prove_ApiRequestor($this->_apiKey); list($response, $apiKey) = $requestor->request('get', $this['url'], $params); return Prove_Util::convertToProveObject($response, $apiKey); }