public function OAuthHTTPFetcher::fetch in Feeds OAuth 6
Same name and namespace in other branches
- 7 OAuthHTTPFetcher.inc \OAuthHTTPFetcher::fetch()
Use signed URL to fetch content.
Overrides FeedsHTTPFetcher::fetch
File
- ./
OAuthHTTPFetcher.inc, line 49
Class
- OAuthHTTPFetcher
- Support OAuth authentication.
Code
public function fetch(FeedsSource $source) {
$source_config = $source
->getConfigFor($this);
$source_node = node_load($source->feed_nid);
global $user;
return new OAuthHTTPBatch(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);
}