function __construct() { $this->auth_name = 'openid'; // nickname,email,fullname,dob,gender,postcode,country,language,timezone $this->field_name = array('author', 'nickname', 'email', 'local_id', 'identity_url', 'fullname'); $this->response = array(); parent::__construct(); }
function __construct() { global $auth_api; $this->auth_name = 'jugemkey'; $this->sec_key = $auth_api[$this->auth_name]['sec_key']; $this->api_key = $auth_api[$this->auth_name]['api_key']; $this->field_name = array('title', 'token'); $this->response = array(); parent::__construct(); }
/** * コンストラクタ */ public function __construct() { global $auth_api; $this->auth_name = 'hatena'; $this->sec_key = $auth_api[$this->auth_name]['sec_key']; $this->api_key = $auth_api[$this->auth_name]['api_key']; $this->api_sig = md5($this->sec_key . 'api_key' . $this->api_key); $this->field_name = array('name', 'image_url', 'thumbnail_url'); $this->response = array(); parent::__construct(); }