Skip to content

searchContacts

Sahri Riza Umami edited this page Jun 25, 2018 · 4 revisions

Searches for the specified query in the first names, last names and usernames of the known user contacts.

searchContacts(query, limit, callback, data)
Field Type Description
query string Query to search for; can be empty to return all contacts.
limit int32 Maximum number of users to be returned.

Example

  • Searches for query "Si Fulan" in the first names, last names and usernames of the known user contacts.

    searchContacts('Si Fulan', 1)

    Response:

    {
      ["@type"] = "users",
      total_count = 1,
      user_ids = {}
    }

Frequently Asked Questions
The Functions

Clone this wiki locally