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"
}
]
{
"errors": [
"Empty address book"
]
}
Address Book
Get Address Book
Retrieve all uploaded address book contacts.
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"
}
]
{
"errors": [
"Empty address book"
]
}
Recipes
Get address book contacts from the device
Get address book contacts from the device
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
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
A user session token. See Authentication page to learn more about the session token.
Responses
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"
}
]
{
"errors": [
"Empty address book"
]
}
Was this page helpful?