public function InstagramFeedsPluginsPagerResult::getRaw in Instagram Feeds 7
Overrides FeedsFetcherResult::getRaw().
Overrides FeedsFetcherResult::getRaw
File
- modules/
instagram_feeds_plugins/ plugins/ feeds/ InstagramFeedsPluginsPager.inc, line 25 - Home of the InstagramFeedsPluginsPager.
Class
- InstagramFeedsPluginsPagerResult
- Result of FeedsHTTPFetcher::fetch().
Code
public function getRaw() {
feeds_include_library('http_request.inc', 'http_request');
$result = http_request_get($this->url, NULL, NULL, TRUE);
if (!in_array($result->code, array(
200,
201,
202,
203,
204,
205,
206,
))) {
throw new Exception(t('Download of @url failed with code !code.', array(
'@url' => $this->url,
'!code' => $result->code,
)));
}
return $this
->sanitizeRaw($result->data);
}