if(!class_exists('Eden_Google')){class Eden_Google extends Eden_Class{public static function i(){return self::_getSingleton(__CLASS__);}public function auth($clientId,$clientSecret,$redirect,$apiKey=NULL ){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string')->argument(3,'url')->argument(4,'string','null');return Eden_Google_Oauth::i($clientId,$clientSecret,$redirect,$apiKey);}public function analytics($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Analytics::i($token);}public function calendar($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Calendar::i($token);}public function checkout($merchantId){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Checkout_Form::i($merchantId);}public function contacts($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Contacts::i($token);}public function drive($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Drive::i($token);}public function imap($user,$token){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');return Eden_Google_Imap::i($user,$token);}public function smtp($user,$token){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');return Eden_Google_Smtp::i($user,$token);}public function maps($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Maps::i($token);}public function plus($token){Eden_Google_Error::i()->argument(1,'string');return Eden_Google_Plus::i($token);}public function shortener($key,$token){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');return Eden_Google_Shortener::i($key,$token);}public function youtube($token,$developerId){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');return Eden_Google_Youtube::i($token,$developerId);}}}
/** * Returns google analytics methods * * @param *string * @param *string * @param *string * @param *string * @return Eden_Google_Oauth */ public function auth($clientId, $clientSecret, $apiKey, $redirect) { //argument test Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string')->argument(3, 'string')->argument(4, 'string'); //Argument 4 must be a string return Eden_Google_Oauth::i($clientId, $clientSecret, $apiKey, $redirect); }
public function auth($clientId, $clientSecret, $apiKey, $redirect) { Eden_Google_Error::i()->argument(1, 'string')->argument(2, 'string')->argument(3, 'string')->argument(4, 'string'); return Eden_Google_Oauth::i($clientId, $clientSecret, $apiKey, $redirect); }