Cognitive Systems WiFi Motion AppCloud API (v1-5-x)
The AppCloud APIs are used by mobile applications to communicate with the Cognitive Systems Infrastructure.
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/
https://docs.cognitivesystems.com/api/v1/
Request
Session create for a user. Each session create updates a "valid_from" UTC timestamp column in the user model.
Any subseqeuent session creates for the same user will invalidate any previously issued tokens, effectively preventing account sharing or multiple devices being logged-in with the same account.
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/sessions
https://docs.cognitivesystems.com/api/v1/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/sessions?multi=false' \
-H 'Content-Type: application/json' \
-d '{
"email": "string",
"password": "string",
"first_name": "string",
"last_name": "string"
}'
{ "refresh_token": "string", "token": "string", "user": { "id": 0, "username": "string", "email": "string", "first_name": "string", "last_name": "string", "created_at": "string", "updated_at": "string", "confirmed_at": "string", "sub": "string", "valid_from": 0 } }
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/sessions
https://docs.cognitivesystems.com/api/v1/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/sessions?multi=false' \
-H 'Content-Type: application/json' \
-d '{
"token": "string"
}'
{ "refresh_token": "NEW.AUTH.TOKEN", "token": "NEW.REFRESH.TOKEN", "user": { "id": 420, "email": "user@cognitivesystems.com", "first_name": "John", "last_name": "Smith", "created_at": "2020-01-04T22:05:38.793Z", "updated_at": "2020-01-04T22:06:02.059Z", "confirmed_at": "2020-01-04T22:06:02.056Z" } }
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/sessions/sso/apple
https://docs.cognitivesystems.com/api/v1/sessions/sso/apple
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.cognitivesystems.com/_mock/assets/specs/app-cloud/v1-5-x/sessions/sso/apple \
-H 'Content-Type: application/json' \
-d '{
"user": {
"name": {
"firstName": "John",
"lastName": "Smith"
},
"email": "user@cognitivesystems.com"
},
"access_token": "NEW.APPLE.AUTH.TOKEN"
}'
{ "refresh_token": "string", "token": "string", "user": { "id": 0, "username": "string", "email": "string", "first_name": "string", "last_name": "string", "created_at": "string", "updated_at": "string", "confirmed_at": "string", "sub": "string", "valid_from": 0 } }