public function logout()
 {
     Setting::set('google-identity', 'access_token', null);
     return $this->info();
 }
Пример #2
0
 /**
  * Update the last Twitter API call to now
  */
 public static function updateLastAPICall()
 {
     $now = new \DateTime();
     Setting::set('twitter', 'last_api_call', $now->format('Y-m-d H:i:s'));
 }