You are here

public function InstagramRequest::requestUserMedia in Instagram Block 7

Builds a request for {user} media.

File

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

Class

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

Code

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