Skip to content

Query Device Timezone

API Address:/v2/binding/enduserapi/getDeviceTimeZone

Request Method:GET

Request Data Type:application/x-www-form-urlencoded

Response Data Type:*/*

API Description:Query device timezone

Request Parameters:

Parameter NameParameter DescriptionRequest TypeRequiredData TypeSchema
dkDevice Keyquerytruestring
pkProduct Keyquerytruestring

Response Status:

Status CodeDescriptionSchema
200Successfully queried device timezoneRegistration code response data«DeviceTimeZone»
5041No permission
5066Please enter Product Key
5067Please enter Device Key

Response Parameters:

Parameter NameParameter DescriptionTypeSchema
codeResponse status codeinteger(int32)integer(int32)
dataResponse dataDeviceTimeZoneDeviceTimeZone
  timeZoneTimezone. Follows the +-HH:mm or +-HH formatstring
  timeZoneIdTimezone IDstring
extMsgExtended messagestring
msgResponse messagestring

Response Example:

javascript
{
	"code": 0,
	"data": {
		"timeZone": "",
		"timeZoneId": ""
	},
	"extMsg": "",
	"msg": ""
}