TTLock is a global provider of solutions for smart locks. We provide PCBA and softwares for lock manufactures and end users. We provide open API/SDK for developers. With these APIs/SDKs, you can develop your own applications to manage smart locks. The SDK here is for mobile app to communicate with locks via bluetooth.
MIT License
12
stars
11
forks
source link
identityCard/changePeriod api request gives 400 bad request #28
API Name: https://api.ttlock.com.cn/v3 Method: POST URL: https://api.ttlock.com.cn/v3/identityCard/changePeriod Params: { accessToken = mytoken; cardId = 56331608; changeType = 1; clientId = myclientid; date = 1707667792342; endDate = 0; startDate = 0; } HTTP Header: { "Accept-Language" = "en-UZ;q=1, ru-UZ;q=0.9"; "Content-Type" = "application/x-www-form-urlencoded"; "User-Agent" = "iOS_SDK_Demo/3.3.1 (iPhone; iOS 17.1.2; Scale/3.00)"; }
API RESPONSE:
HTTP URL: https://api.ttlock.com.cn/v3/identityCard/changePeriod ResponseContent: (null)
Error Domain: com.alamofire.error.serialization.response Error Domain Code: -1011 Error Localized Description: Request failed: bad request (400)
and there is no difference if I set another date or set permanent date