private function StatusInstagram::generateRequest in Heartbeat 8
File
- modules/
statusmessage/ src/ StatusInstagram.php, line 103
Class
Namespace
Drupal\statusmessageCode
private function generateRequest($url) {
$twid = $this
->parseUrl($url);
$settings = [
'oauth_access_token' => $this->instagramConfig
->get('oauth_access_token'),
'oauth_access_token_secret' => $this->instagramConfig
->get('oauth_access_token_secret'),
'consumer_key' => $this->instagramConfig
->get('consumer_key'),
'consumer_secret' => $this->instagramConfig
->get('consumer_secret'),
];
$instagramApi = new InstagramAPIExchange($settings);
$getField = '?id=' . $twid . '&tweet_mode=extended';
return $instagramApi
->setGetfield($getField)
->buildOauth($this
->getApiStatusParameter(), 'GET');
}