Esempio n. 1
0
 public function getToken()
 {
     if (is_null($this->_token)) {
         $response = $this->apiCall('/users/' . $this->getAttribute('id') . '/token', 'GET');
         if (Floorplanner::success($response)) {
             $this->_token = $response['data'];
         } else {
             throw new Floorplanner_Exception($response);
         }
     }
     return $this->_token;
 }