You are here

public function Instagram::user_search in Drupagram 6

Same name and namespace in other branches
  1. 7 drupagram.lib.php \Instagram::user_search()

Search for a user by name. GET /users/search

PARAMETERS q A query string. count Number of users to return

File

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