Cognitive Systems App Cloud API
The AppCloud APIs are used by mobile applications to communicate with the Cognitive Systems Infrastructure.
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/
https://docs.cognitivesystems.com/api/v1/
Request
This endpoint returns all network model stored in the app-cloud. Network models are stored in cache which can be made on-demand by setting ensure field to true. Default radius is 5km, if latitude and longitude is supplied with the request. Haversine Distance is used as distance metric to find networks.
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/internal/network_map
https://docs.cognitivesystems.com/api/v1/internal/network_map
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/internal/network_map?ensure=true&radius=0&latitude=0&longitude=0' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "id": 0, "name": "string", "created_at": "string", "updated_at": "string", "external_id": 0, "user_count": 0, "latitude": "string", "longitude": "string", "address": "string", "timezone": "string", "pet_size": "string", "building_type": "string", "building_size": "string", "live_enabled": true, "scene_id": 0 }
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/internal/networks/{page_number}/{count_number}
https://docs.cognitivesystems.com/api/v1/internal/networks/{page_number}/{count_number}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/internal/networks/{page_number}/{count_number}?online=true&order=string' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ { "network_id": 1, "external_id": 219, "network_name": "wifi", "online": true }, { "network_id": 2, "external_id": 2, "network_name": "99999", "online": true }, { "network_id": 3, "external_id": 1028, "network_name": "Test", "online": true } ]
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/internal/invite
https://docs.cognitivesystems.com/api/v1/internal/invite
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.cognitivesystems.com/_mock/assets/specs/api/app_cloud/internal/invite \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"network_id": 3,
"email": "john.smith@cognitivesystems.com"
}'
{ "id": 1, "network_id": 3, "email": "john.smith@cognitivesystems.com", "created_at": "2020-10-06T18:57:59.181Z", "updated_at": "2020-10-06T18:57:59.181Z" }