You are here

public function OAuthHTTPFetcher::fetch in Feeds OAuth 7

Same name and namespace in other branches
  1. 6 OAuthHTTPFetcher.inc \OAuthHTTPFetcher::fetch()

Use signed URL to fetch content.

File

./OAuthHTTPFetcher.inc, line 111
Definition of the import batch object created on the fetching stage by OAuthHTTPFetcher.

Class

OAuthHTTPFetcher
Support OAuth authentication.

Code

public function fetch(FeedsSource $source) {
  $source_config = $source
    ->getConfigFor($this);
  global $user;
  return new OAuthHTTPFetcherResult(trim($source_config['source']), $this->config['authenticator'], $this->config['consumer_key'], $this->config['consumer_secret'], $this->id, $this->config['site_id'], $this->config['method'], $this
    ->getAuthenticatedUser($source), $this->two);
}