예제 #1
0
 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);
 }
예제 #2
0
 public function __toArray($recursive = false)
 {
     if ($recursive) {
         return Prove_Util::convertProveObjectToArray($this->_values);
     } else {
         return $this->_values;
     }
 }
예제 #3
0
 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);
 }