public function __construct($clientid, $clientsecret, $returnurl) { parent::__construct($clientid, $clientsecret, $returnurl, self::SCOPE); }
/** * Construct a local_msaccount\client object. * * @param string $clientid client id for OAuth 2.0 provided by microsoft * @param string $clientsecret secret for OAuth 2.0 provided by microsoft * @param moodle_url $returnurl url to return to after succseful auth */ public function __construct() { $returnurl = new \moodle_url('/local/msaccount/msaccount_redirect.php'); $returnurl->param('sesskey', sesskey()); parent::__construct(get_config('local_msaccount', 'clientid'), get_config('local_msaccount', 'clientsecret'), $returnurl, self::SCOPE); }
/** * Create the DropBox API Client. * * @param string $key The API key * @param string $secret The API secret * @param string $callback The callback URL */ public function __construct($key, $secret, $callback) { parent::__construct($key, $secret, $callback, ''); }
/** * Construct a skydrive request object * * @param string $clientid client id for OAuth 2.0 provided by microsoft * @param string $clientsecret secret for OAuth 2.0 provided by microsoft * @param moodle_url $returnurl url to return to after succseful auth */ public function __construct($clientid, $clientsecret, $returnurl) { parent::__construct($clientid, $clientsecret, $returnurl, self::SCOPE); // Make a session cache $this->foldernamecache = cache::make('repository_skydrive', 'foldername'); }