GET /callcenter/user/search


Perform a search of the login table on the fname, lname and username fields and return an associative array where they key is the username and the value is a concatenation of the first and last name.

Resource URL

http://www.lsitampa.com/callcenter/user/search.{response_format}

Method

GET

Response Format

json

Parameters

api_key - optional
An alphanumeric string that represents the API key for this method.
While the parameter might be listed as optional in the documentation, it is only optional in the query string. If it is not in the query string of a POST/PUT/DELETE method it is expected in the body. In a GET method it must be in the query string.
If the method type and its implementation support it, this paramter can be either passed as part of the query string or as part of the message content.
See examples if applicable.
term - optional
The search term to use for the search.
field - optional
Search a specific field.
value - optional
The value of requested field. Required when using field.
jsonp_callback - optional
If making cross domain Ajax calls use this as the call-back method name in your Ajax request.

HTTP Errors

400
{
  "error": {
    "code": 400,
    "message": "Bad request (if set by the developer, specific reason for bad request)"
  }
}
404
{
  "error": {
    "code": 404,
    "message": "Not found"
  }
}
500
{
  "error": {
    "code": 500,
    "message": "Internal Server Error"
  }
}

Examples

Search for "foote"

The search term is "foote"

Request URL
http://www.lsitampa.com/callcenter/user/search.json/api_key/thekey/term/foote
Result
{
  "pfoote": "Patrick Foote",
  "admin": "Michael Foote",
  "lfoote": "Ludmila Foote",
  "bfoote": "Brenda Foote"
}