You are here

class OAuth2HTTPSFetcher in Feeds OAuth 7

Same name and namespace in other branches
  1. 6 OAuth2HTTPSFetcher.inc \OAuth2HTTPSFetcher

Support OAuth 2.0 authentication.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
OAuth2HTTPSFetcher::configDefaults public function Declare defaults. Overrides OAuthHTTPFetcher::configDefaults
OAuth2HTTPSFetcher::configForm public function Add form options. Overrides OAuthHTTPFetcher::configForm
OAuthHTTPFetcher::$two protected property
OAuthHTTPFetcher::configFormValidate public function Validate config.
OAuthHTTPFetcher::fetch public function Use signed URL to fetch content.
OAuthHTTPFetcher::getAuthenticatedUser protected function Get authenticated user.
OAuthHTTPFetcher::sourceForm public function Expose source form.
OAuthHTTPFetcher::__construct public function