App stand-alone Web interface description



Download 0,49 Mb.
bet6/7
Sana12.06.2022
Hajmi0,49 Mb.
#659318
1   2   3   4   5   6   7
Bog'liq
APK-API Android(4)

8.3 Interface authentication


Please fill in the push key. When the device pushes the data to the interface, it will transfer the data signature. The developer is asked to verify the legitimacy of the request. The specific method is as follows:
token = MD5(data + timeMillis + key)
Example:
data = []
timeMillis = 1622508961756
key = 123456
Before encryption: []1622508961756123456
After encryption:5B976630F9613B41175D1E4623FB93F9
The following is an example of online MD5 encryption:
key is the push key set in the interface. Developers are required to stitch the parameters to md5 and verify with the request parameter token.


8.4 Complete Json message format





[
{
"createTime":"2021-05-31 17:01:59",
"devSn":"6F24FAZFE",
"devUserId":100,
"userCode":"100",
"faceImageBase64":"***base64图片编码==",
"id":1,
"passType":0,
"temp":"36.8",
"userName":"访客"
},
{
"createTime":"2021-05-31 18:05:59",
"devSn":"6F24FAZFE",
"devUserId":101,
"userCode":"101",
"faceImageBase64":"***base64图片编码==",
"id":2,
"passType":0,
"temp":"36.0",
"userName":"访客"
}
]



8.5 Third-party response format


If the device pushes to a third party, it will retry three times with an interval of five minutes.
Note: If the data is not returned to the device in the prescribed format, the device will turn off the push function.

{
"success": true,
"error": ""
}



success true= Push successfully, flase=failure


error Reason for failure


8.6 Springboot Server-side interface example



Client request example





  1. Download 0,49 Mb.

    Do'stlaringiz bilan baham:
1   2   3   4   5   6   7




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish