You are here

public function OAuth2HTTPSFetcher::fetch in Feeds OAuth 6

Use signed URL to fetch content.

Overrides FeedsHTTPFetcher::fetch

File

./OAuth2HTTPSFetcher.inc, line 55

Class

OAuth2HTTPSFetcher
Support OAuth 2.0 authentication.

Code

public function fetch(FeedsSource $source) {
  $source_config = $source
    ->getConfigFor($this);
  $source_node = node_load($source->feed_nid);
  global $user;
  return new OAuth2HTTPSBatch(trim($source_config['source']), $this->config['authenticator'], $this->config['consumer_key'], $this->config['consumer_secret'], $this->config['site_id'], $source_node ? $source_node->uid : $user->uid);
}