You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
2.9 KiB

# Client IDsxus_cloris
# Client Secret:SxuIp66zKyqs
# :https://service.icloris.com:8892/gateway
# https://service.icloris.com:8892/oauth/authorize
# Access Token URL:https://service.icloris.com:8892/oauth/access_token
# client_id client_secret
###
POST http://localhost:7320/v1.0/mqtt/send
### code
https://service.icloris.com:8892/oauth/authorize?client_id=sxus_cloris&response_type=code&redirect_uri=http://101.201.226.163:7330/v1.0/debug/code
### token
POST https://service.icloris.com:8892/oauth/access_token
content-type: application/json;charset=utf-8
{
"client_id":"sxus_cloris",
"client_secret":"SxuIp66zKyqs",
"redirect_uri":"http://101.201.226.163:7330/v1.0/debug",
"code":"rSQ9n1GzuqCPsRt1yQ0U-x"
}
###
{
"access_token": "J9IR4guo1_XKHbfoTAfjmhe55tA=OiFmgqsv26152f79de8d93cb36030380384f4273c0117359662a766c74d909fd4e13506d351d53450162383d521bdab220cdc5d00a4cd3fff299bdb56cf304598b4a4566",
"refresh_token": "gWSaAunAIOvvM7DU9xyt9gOP2Wo=mDzkYYJ483f4da0e086b3cee160cfbff75c035a0ef7a0255fdfcec1f017b85ebb1963a998c0f953049bcdf150b532b48c0c6220384a9e56d84e2da85045592d1b88c4b97",
"expires_in": 86400000
}
###
POST https://service.icloris.com:8892/gateway
content-type: application/json;charset=utf-8
{
"header": {
"namespace": "AppOS.ConnectedHome.Discovery",
"name": "DiscoverAppliancesRequest",
"messageId": "6d6d6e14-8aee-473e-8c24-0d31ff9c17a2",
"payloadVersion": "1"
},
"payload": {
"accessToken": "esG7FfR-d6tL62xddvsKsDmiU_8=-d4eKV7Ea7316333d142ecc2f33394bd075dd09fe91dd8c142e9c27014bfe127de1d636619a693f733f0734287cacd0c4210b3385556864ec2c2c58cf42d42c4d0f6c88c"
}
}
###
GET https://service.icloris.com:8892/oauth/authorize?&client_id=sxus_cloris&response_type=code&redirect_uri=http://101.201.226.163:7330/v1.0/debug/code
###
GET http://101.201.226.163:7330/v1.0/debug/code?code=RooLKf9H1nsNz1BFbQnryU
###
POST http://101.201.226.163:8194/message/v4.0/message/send
# POST http://127.0.0.1:8194/message/v4.0/message/send
content-type: application/json;charset=UTF-8
{
"toDomain":"User",
"fromDomain":"Rest",
"tos":[
"1481203617507840000"
],
"rule":{
"offlineDiscard":0,
"ackIsSuccess":0
},
"data":""
}
{
"header": {
"payloadVersion": "1",
"messageId": "4ab4d564-4226-468c-ab65-8eb4826a0ad3",
"name": "TurnOnRequest",
"namespace": "AppOS.ConnectedHome.Control"
},
"payload": {
"accessToken": "hU00UpZTw_u5N8iTZYTiSBM9qCg=PJ4ru2QLc16a1292bcab219c240d04f6a9b34b56a73700e8abe2b83fa9aa9a55d07022beb7153380e3a8762fe9ea137ad234703272dd608bfdf83751109f6d7a159bcbed",
"appliance": {
"additionalApplianceDetails": {
"host": "36303234-6373437-36391B91",
"type": "rebound-switch-3-way"
},
"applianceId": "dev_00124B0017EEA585_power1"
}
}
}