You are here

public function Instagram::user_search in Drupagram 7

Same name and namespace in other branches
  1. 6 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

@example: https://api.instagram.com/v1/users/search?q=jack&access_token=10920197.f...

File

./drupagram.lib.php, line 331
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);
}