You are here

public function Instagram::user_info in Drupagram 7

Get basic information about a user.

File

./drupagram.lib.php, line 236
Classes to implement the full Instagram API

Class

Instagram
Primary Instagram API implementation class Supports the full REST API for drupagram.

Code

public function user_info($id = 'self', $params = array(), $use_auth = TRUE) {
  if (is_numeric($id) || $id == 'self') {
    $params['!user_id'] = $id;
  }
  elseif (is_string($id)) {
    return $this
      ->user_lookup($id);
  }
  $result = $this
    ->fetch('user', $params, $use_auth);
  return $result;
}