function init() { parent::init(); return; // require_once(getcwd().'/../vendor/xepan/marketing/lib/SocialPosters/Base/http.php'); // require_once(getcwd().'/../vendor/xepan/marketing/lib/SocialPosters/Base/oauth/client/class.php'); $this->client_config = $client_config = $this->add('xepan/marketing/SocialPosters_GoogleBlogger_GoogleBloggerConfig')->tryLoadAny(); if (!$this->client_config->loaded()) { $this->client_config->save(); } if (!$client_config->loaded()) { return; } $this->client = $client = new \oauth_client_class(); $client->debug = 1; $client->offline = true; $client->debug_http = 1; $client->server = 'Google'; $client->redirect_uri = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?page=xepan/marketing_socialafterloginhandler&xfrom=GoogleBlogger'; $client->client_id = $this->client_config['appId']; $application_line = __LINE__; $client->client_secret = $this->client_config['secret']; $client->refresh_token = $this->client_config['refresh_token']; // $client->access_token = $this->client_config['access_token']; /* API permission scopes * Separate scopes with a space, not with + */ $client->scope = 'https://www.googleapis.com/auth/blogger'; // if($_GET['facebook_logout']){ // $this->fb->destroySession(); // } }
function init() { parent::init(); // require_once(getcwd().'/../vendor/xepan/marketing/lib/SocialPosters/Facebook/FacebookConfig.php'); // require_once(getcwd().'/../vendor/xepan/marketing/lib/SocialPosters/Facebook/FacebookPosting.php'); // require_once(getcwd().'/../vendor/xepan/marketing/lib/SocialPosters/Facebook/FacebookUsers.php'); // require_once(getcwd().'/../vendor/xepan/marketing/lib/SocialPosters/Facebook/facebook.php'); }
function init() { parent::init(); }