public function createTokenFromCode($params) { $params['grantType'] = "authorization_code"; return $this->_createToken($params); }