Query Information of a Speed Dial Number
Query the detailed information of a speed dial number.
Request URL
GET {base_url}/{api_path}/speed_dial/get?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| id | Yes | Integer | The unique ID of a speed dial number. Note: You can query
the ID of a speed dial number using the Query Speed Dial Number List
interface. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| data | Object<Speed_Dial> | The detailed information about the speed dial number. |
- Speed_Dial
-
Parameter Type Description id Integer The unique ID of the speed dial number. code String The speed dial number. phone_number String The phone number assigned to the speed dial number. remark String The remark for the speed dial number.
Example
Request example
GET /openapi/v1.0/speed_dial/get?id=2&access_token=KHlhDSbuZ75OsFLDUbZHdkE5cIQEcIlK HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"data": {
"id": 2,
"code": "98",
"phone_number": "5500",
"remark": ""
}
}