You are here

public function OAuthHTTPBatch::getRaw in Feeds OAuth 6

Implementation of FeedsImportBatch::getRaw();

Overrides FeedsImportBatch::getRaw

File

./OAuthHTTPFetcher.inc, line 31

Class

OAuthHTTPBatch
Definition of the import batch object created on the fetching stage by OAuthHTTPFetcher.

Code

public function getRaw() {
  $access_token = call_user_func($this->authenticator, $this->uid, $this->site_id);
  $oauth = new OAuth($this->consumer_key, $this->consumer_secret, OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI);
  $oauth
    ->setToken($access_token['oauth_token'], $access_token['oauth_token_secret']);
  if ($oauth
    ->fetch($this->url)) {
    return $oauth
      ->getLastResponse();
  }
}