From QuickBlox Developers (API docs, code samples, SDK)
QuickBlox API Documentation
Contents |
Modules
Need to know information
Endpoints
QuickBlox provides a flexible mechanism for apps to retrieve all the correct endpoints (API, Chat, etc) to work with. This mechanism allows smooth transition between Plans. We recommend to call it each 1 hour.
URL | Headers | HTTP Verb | Action Description | Success HTTP Status Code | /account_settings.json | QB-Account-Key | GET | Request all app endpoints | 200 |
---|
To get the QB-Account-Key, open Admin panel, your Account page and copy the Account key value
Request
curl -X GET \ -H "QuickBlox-REST-API-Version: 0.1.1" \ -H "QB-Account-Key: 7yvNe17TnjNUqDoPwfqp" \ https://api.quickblox.com/account_settings.json
Response
{ "api_endpoint": "https://api.quickblox.com", "chat_endpoint": "chat.quickblox.com", "turnserver_endpoint": "turnserver.quickblox.com" }
Use these endpoints in the application. This should ideally be the first request in the application before all other requests to QuickBlox.