Skip to main content
GET
/
address_book.json
curl -X GET \
-H "Content-Type: application/json" \
-H "QB-Token: 2c7b29abe6af6322bb6bbe1bf6b530c4d1012bba" \
https://api.quickblox.com/address_book.json
[
  {
    "name": "Mike Howard",
    "phone": "463571393241"
  },
  {
    "name": "Morgan Fuller",
    "phone": "65021272571"
  }
]

Recipes

1

1. Set a device identifier

Set a udid parameter to specify a user’s device.
curl -X GET \
-H "Content-Type: application/json" \
-H "QB-Token: 6d59d901c1231a4d74572224b88ccbc487012bba" \
-d '{
  "udid": "A337E8A4-80AD-8ABA-9F5D-579EFF6BACAB"
}' \
https://api.quickblox.com/address_book.json
2

2. As a result, the API returns a list of address book contacts for a specified device.

curl -X GET \
-H "Content-Type: application/json" \
-H "QB-Token: 6d59d901c1231a4d74572224b88ccbc487012bba" \
-d '{
  "udid": "A337E8A4-80AD-8ABA-9F5D-579EFF6BACAB"
}' \
https://api.quickblox.com/address_book.json

Query Parameters

udid
string
User’s device identifier. If specified, all operations will be in this context. Max. length is 64 symbols. If the device identifier is not specified, it means that a user has one global address book across all their devices.

Headers

QB-Token
string
required
A user session token. See Authentication page to learn more about the session token.

Responses

A successful response
An error response
errors
array of strings
curl -X GET \
-H "Content-Type: application/json" \
-H "QB-Token: 2c7b29abe6af6322bb6bbe1bf6b530c4d1012bba" \
https://api.quickblox.com/address_book.json
[
  {
    "name": "Mike Howard",
    "phone": "463571393241"
  },
  {
    "name": "Morgan Fuller",
    "phone": "65021272571"
  }
]
I