特定变量数据

目的

获取任何特定变量的详细信息。在API请求中指定变量的惟一ID,以获取特定变量组的数据。

请求URL

https://www.zohoapis.com.cn/crm/v2/settings/variables/{variable_id}?group={variable_group_id}

variable_id - 变量的唯一ID。

variable_group_id - 变量组的唯一ID。

请求方法

GET

范围

scope=ZohoCRM.settings.variables.{operation_type}


可能的操作类型
ALL - 完全访问变量数据
READ - 获取变量数据

参数

参数名称数据类型描述
group* 整型/字符串指定变量所属组的惟一ID/API名称。

备注:

在获取特定变量数据时,必须使用组ID/组API名称。

示例请求:使用变量ID和组ID


				curl "https://www.zohoapis.com.cn/crm/v2/settings/variables/40000000047003?group=40000000047001"
-X GET
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"			

示例响应:用于变量ID和组ID


				{
    "variables": [
       {
            "api_name": "Variable1",
            "name": "Variable1",
            "description": "This denotes variable 1 description",
            "id": "40000000047003",
            "type": "text",
            "variable_group": {
                "api_name": "Group1",
                "id": "40000000047001"
            },
            "value": "This denotes variable one value"
        }
    ]
}			

示例请求:使用变量API名称和组ID


				curl "https://www.zohoapis.com.cn/crm/v2/settings/variables/VariableSix?group=40000000047001"
-X GET
-H "Authorization: Zoho-oauthtoken d92d401c803988c5cb849d0b4215f52"			

示例响应:Sample Response: For Variable API Name and Group ID


				{
    "variables": [
       {
            "api_name": "VariableSix",
            "name": "Variable6",
            "description": "On the sea shore",
            "id": "40000000044005",
            "type": "text",
            "variable_group": {
                "api_name": "MyCustsdomGroup",
                "id": "40000000044003"
            },
            "value": "She sells sea shells"
        }
    ]
}			

示例请求:使用变量ID和组API名称


				curl "https://www.zohoapis.com.cn/crm/v2/settings/variables/40000000047003?group=Group2"
-X GET
-H "Authorization: Zoho-oauthtoken d92d401c803988c5cb849d0b4215f52"			

示例响应:用于变量ID和组API名称


				{
    "variables": [
       {
            "api_name": "Variable2",
            "name": "Variable2",
            "description": "This denotes variable 2 description",
            "id": "40000000047007",
            "type": "integer",
            "variable_group": {
                "api_name": "Group2",
                "id": "40000000047005"
            },
            "value": "2"
        }
    ]
}