Beispiel #1
0
 /**
  * Get access to shared credentials.
  *
  * @param String $key Credentials key
  *
  * @return mixed $return Value of the chosen key
  */
 public function __get($key)
 {
     switch ($key) {
         case 'access_token':
             return $this->cas->get('contentful', $key);
         default:
             return NULL;
     }
 }
Beispiel #2
0
 /**
  * Get access to shared credentials.
  *
  * @param String $key Credentials key
  *
  * @return mixed $return Value of the chosen key
  */
 public function __get($key)
 {
     switch ($key) {
         case 'consumer_key':
         case 'consumer_secret':
         case 'user_agent':
         case 'bearer_token':
             return $this->cas->get('twitter', $key);
         default:
             return NULL;
     }
 }
Beispiel #3
0
 /**
  * Get access to shared credentials.
  *
  * @param String $key Credentials key
  *
  * @return mixed $return Value of the chosen key
  */
 public function __get($key)
 {
     switch ($key) {
         case 'app_id':
         case 'app_secret':
         case 'app_secret_proof':
         case 'access_token':
             return $this->cas->get('facebook', $key);
         default:
             return NULL;
     }
 }