class OAuth2HTTPSFetcher in Feeds OAuth 7
Same name and namespace in other branches
- 6 OAuth2HTTPSFetcher.inc \OAuth2HTTPSFetcher
Support OAuth 2.0 authentication.
Hierarchy
- class \OAuthHTTPFetcher extends \FeedsHTTPFetcher
- class \OAuth2HTTPSFetcher
Expanded class hierarchy of OAuth2HTTPSFetcher
1 string reference to 'OAuth2HTTPSFetcher'
- feeds_oauth_feeds_plugins in ./
feeds_oauth.module - Implements hook_feed_plugins().
File
- ./
OAuth2HTTPSFetcher.inc, line 12 - Definition of the import batch object created on the fetching stage by OAuth2HTTPSFetcher.
View source
class OAuth2HTTPSFetcher extends OAuthHTTPFetcher {
/**
* Declare defaults.
*/
public function configDefaults() {
return array(
'scope' => '',
) + parent::configDefaults();
}
/**
* Add form options.
*/
public function configForm(&$form_state) {
$form = parent::configForm($form_state);
$form['scope'] = array(
'#type' => 'textarea',
'#title' => t('Scope'),
'#description' => t('Scope of the authorization request, one per line or comma-separated.'),
'#default_value' => $this->config['scope'],
);
return $form;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OAuth2HTTPSFetcher:: |
public | function |
Declare defaults. Overrides OAuthHTTPFetcher:: |
|
OAuth2HTTPSFetcher:: |
public | function |
Add form options. Overrides OAuthHTTPFetcher:: |
|
OAuthHTTPFetcher:: |
protected | property | ||
OAuthHTTPFetcher:: |
public | function | Validate config. | |
OAuthHTTPFetcher:: |
public | function | Use signed URL to fetch content. | |
OAuthHTTPFetcher:: |
protected | function | Get authenticated user. | |
OAuthHTTPFetcher:: |
public | function | Expose source form. | |
OAuthHTTPFetcher:: |
public | function |