You are here

public function InstagramRequest::requestTagMedia in Instagram Block 7

Builds a request for {tag} media

File

./instagram_block.lib.php, line 52
Instagram classes to integrate with the Instagram API.

Class

InstagramRequest
@file Instagram classes to integrate with the Instagram API.

Code

public function requestTagMedia() {
  $url = "https://api.instagram.com/v1/tags/" . $this->values['tag'] . "/media/recent/";
  $params = array(
    'access_token' => $this->config['access_token'],
    'count' => $this->values['count'],
  );
  $this->response = $this
    ->request($url, $params, 'GET');
}