答案 0 :(得分:2)
紧急地址联系信息位于设备信息react-native init MyApp --template typescript
属性中。
具有此属性的Device Info对象在帐户和扩展API中均可用:
emergencyServiceAddress
要获取要查询的GET /restapi/v1.0/account/{accountId}/device/{deviceId}
GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/device/{deviceId}
值列表,请调用设备列表API:
deviceId
设备列表API不包含GET /restapi/v1.0/account/{accountId}/device
GET /restapi/v1.0/account/{accountId}/extension/{extensionId}/device
,因此您需要使用此功能查找emergencyServiceAddress
以获取特定设备的信息。
deviceId
属性如下所示:
emergencyServiceAddress
您还可以使用更新设备端点更新紧急服务地址:
"emergencyServiceAddress": {
"street": "20 Davis Drive",
"city": "Belmont",
"state": "CA",
"country": "US",
"zip": "94402",
"customerName": "John RingForce"
},
有一些演示代码适用于go-ringcentral
SDK的回购中的Go:
https://github.com/grokify/go-ringcentral/blob/master/examples/e911_address/e911_address.go