You are here

public function Instagram::user_lookup in Drupagram 7

Same name and namespace in other branches
  1. 6 drupagram.lib.php \Instagram::user_lookup()
2 calls to Instagram::user_lookup()
Instagram::user_info in ./drupagram.lib.php
Get basic information about a user.
Instagram::user_recent in ./drupagram.lib.php
Get the most recent media published by a user. GET /users/{user-id}/media/recent

File

./drupagram.lib.php, line 248
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_lookup($username, $params = array(), $use_auth = TRUE) {
  $params['!q'] = $username;
  $result = $this
    ->fetch('user_search', $params, $use_auth);
  return $result;
}