品牌是你面向客户的身份。它们可能代表多种产品或服务,或者它们可能是您的公司拥有和代表的多个品牌。

如果票据是由非品牌渠道生成的,则默认品牌是分配给票据的品牌。属性可以更新默认品牌更新帐户设置端点。

JSON格式

品牌被表示为具有以下属性的JSON对象:

的名字 类型 只读 强制性的 描述
活跃的 布尔 如果将品牌设置为活动
brand_url 字符串 品牌的url
created_at 字符串 真正的 品牌创建的时间
默认的 布尔 该品牌是此帐户的默认品牌吗
has_help_center 布尔 如果该品牌有帮助中心
help_center_state 字符串 真正的 帮助中心的状态。允许的值包括enabled, disabled, restricted。
host_mapping 字符串 到该品牌的主机映射(如果有的话)。只有管理员才能查看此属性。
id 整数 真正的 创建品牌时自动分配的ID
is_deleted 布尔 是否删除品牌对象
标志 对象 表示为的文件附件对象
的名字 字符串 真正的 品牌名称
signature_template 字符串 品牌的签名模板
子域名 字符串 真正的 品牌的子域
ticket_form_ids 数组 真正的 可供品牌使用的票证的id
updated_at 字符串 真正的 品牌最后一次更新的时间
url 字符串 真正的 该品牌的API url

例子

             
“活跃”真正的,“brand_url”“https://brand1.com”,“created_at”“2012 - 04 - 02 - t22:55:29z”,“默认”真正的,“has_help_center”真正的,“help_center_state”“启用”,“host_mapping”“brand1.com”,“id”47,“标志”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/logos/brand1_logo.png”,“file_name”“brand1_logo.png”,“id”928374,“大小”166144,“缩略图”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_thumb.png”,“file_name”“brand1_logo_thumb.png”,“id”928375,“mapped_content_url”“https://company.com/photos/brand1_logo_thumb.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928375.json”,“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_small.png”,“file_name”“brand1_logo_small.png”,“id”928376,“mapped_content_url”“https://company.com/photos/brand1_logo_small.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928376.json”,“url”“https://company.亚博zendesk.com/api/v2/attachments/928374.json”,“名称”“1”品牌,“signature_template”“{{agent.signature}}”,“子域名”“brand1”,“ticket_form_ids”47,33,22,“updated_at”“2012 - 04 - 02 - t22:55:29z”,“url”“https://company.亚博zendesk.com/api/v2/brands/47.json”

品牌列表

  • GET / api / v2 /品牌

返回您帐户中按名称排序的所有品牌的列表。

允许

  • 管理员、代理商

代码示例

旋度
              
旋度https://子域名.亚博zendesk.com/api/v2/brands.json- v - uemail_address密码
              
进口“fmt”“输入输出”"net/http”函数主要url: =“https://example.亚博zendesk.com/api/v2/brands”方法: =“获得”要求的事情,犯错: =httpNewRequest方法,url,如果犯错! =fmtPrintln犯错返回要求的事情添加“内容类型”,“application / json”要求的事情添加“授权”,“基本< auth-value >”// Base64编码的"username:password"客户端: =http客户端res,犯错: =客户端要求的事情如果犯错! =fmtPrintln犯错返回推迟res身体关闭身体,犯错: =ioReadAllres身体如果犯错! =fmtPrintln犯错返回fmtPrintln字符串身体
Nodejs
              
varaxios需要“axios”var配置方法“得到”,url“https://example.亚博zendesk.com/api/v2/brands”,“内容类型”“application / json”,“授权”的基本< auth-value >”,// Base64编码的"username:password",axios配置然后函数响应控制台日志JSONstringify响应数据函数错误控制台日志错误
Python
              
进口请求url“https://example.亚博zendesk.com/api/v2/brands”“内容类型”“application / json”,响应请求请求“获得”,url,身份验证“<用户名>”,' <密码> ',打印响应文本
Ruby
              
需要"net/http”uriURI“https://example.亚博zendesk.com/api/v2/brands”请求HTTP得到uri,“内容类型”“application / json”请求basic_auth“用户名”,“密码”响应HTTP开始uri主机名,uri港口,use_ssl真正的|http|http请求请求结束

示例响应(年代)

200好了
              
// Status 200 OK“品牌”“活跃”真正的,“brand_url”“https://brand1.亚博zendesk.com”,“created_at”“2019 - 08 - 06 - t02:43:39z”,“默认”真正的,“has_help_center”真正的,“help_center_state”“启用”,“host_mapping”“brand1.com”,“id”360002783572,“is_deleted”,“标志”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/logos/brand1_logo.png”,“file_name”“brand1_logo.png”,“id”928374,“mapped_content_url”“https://company.com/logos/brand1_logo.png”,“大小”166144,“缩略图”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_thumb.png”,“file_name”“brand1_logo_thumb.png”,“id”928375,“mapped_content_url”“https://company.com/photos/brand1_logo_thumb.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928375.json”,“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_small.png”,“file_name”“brand1_logo_small.png”,“id”928376,“mapped_content_url”“https://company.com/photos/brand1_logo_small.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928376.json”,“url”“https://company.亚博zendesk.com/api/v2/attachments/928374.json”,“名称”“1”品牌,“signature_template”“{{agent.signature}}”,“子域名”“hello world”,“ticket_form_ids”360000660811,“updated_at”“2019 - 08 - 06 - t02:43:40z”,“url”“https://company.亚博zendesk.com/api/v2/brands/360002783572.json”,“数”1,“next_page”,“previous_page”

展示品牌

  • GET / api / v2 /品牌/ {brand_id}

为您的帐户返回一个品牌。

允许

  • 管理员、代理商

参数

的名字 类型 要求 描述
brand_id 整数 路径 真正的 品牌标识

代码示例

旋度
              
旋度https://子域名.亚博zendesk.com/api/v2/brands/brand_id. json- v - uemail_address密码
              
进口“fmt”“输入输出”"net/http”函数主要url: =“https://example.亚博zendesk.com/api/v2/brands/360002783572”方法: =“获得”要求的事情,犯错: =httpNewRequest方法,url,如果犯错! =fmtPrintln犯错返回要求的事情添加“内容类型”,“application / json”要求的事情添加“授权”,“基本< auth-value >”// Base64编码的"username:password"客户端: =http客户端res,犯错: =客户端要求的事情如果犯错! =fmtPrintln犯错返回推迟res身体关闭身体,犯错: =ioReadAllres身体如果犯错! =fmtPrintln犯错返回fmtPrintln字符串身体
Nodejs
              
varaxios需要“axios”var配置方法“得到”,url“https://example.亚博zendesk.com/api/v2/brands/360002783572”,“内容类型”“application / json”,“授权”的基本< auth-value >”,// Base64编码的"username:password",axios配置然后函数响应控制台日志JSONstringify响应数据函数错误控制台日志错误
Python
              
进口请求url“https://example.亚博zendesk.com/api/v2/brands/360002783572”“内容类型”“application / json”,响应请求请求“获得”,url,身份验证“<用户名>”,' <密码> ',打印响应文本
Ruby
              
需要"net/http”uriURI“https://example.亚博zendesk.com/api/v2/brands/360002783572”请求HTTP得到uri,“内容类型”“application / json”请求basic_auth“用户名”,“密码”响应HTTP开始uri主机名,uri港口,use_ssl真正的|http|http请求请求结束

示例响应(年代)

200好了
              
// Status 200 OK“品牌”“活跃”真正的,“brand_url”“https://brand1.亚博zendesk.com”,“created_at”“2019 - 08 - 06 - t02:43:39z”,“默认”真正的,“has_help_center”真正的,“help_center_state”“启用”,“host_mapping”“brand1.com”,“id”360002783572,“is_deleted”,“标志”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/logos/brand1_logo.png”,“file_name”“brand1_logo.png”,“id”928374,“mapped_content_url”“https://company.com/logos/brand1_logo.png”,“大小”166144,“缩略图”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_thumb.png”,“file_name”“brand1_logo_thumb.png”,“id”928375,“mapped_content_url”“https://company.com/photos/brand1_logo_thumb.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928375.json”,“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_small.png”,“file_name”“brand1_logo_small.png”,“id”928376,“mapped_content_url”“https://company.com/photos/brand1_logo_small.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928376.json”,“url”“https://company.亚博zendesk.com/api/v2/attachments/928374.json”,“名称”“1”品牌,“signature_template”“{{agent.signature}}”,“子域名”“hello world”,“ticket_form_ids”360000660811,“updated_at”“2019 - 08 - 06 - t02:43:40z”,“url”“https://company.亚博zendesk.com/api/v2/brands/360002783572.json”

创建品牌

  • POST / api / v2 /品牌

允许

  • 管理员

例子的身体

             
“品牌”“名称”“1”品牌,“子域名”“Brand1”

代码示例

旋度
              
旋度https://子域名.亚博zendesk.com/api/v2/brands.json- h“application / json内容类型:- x的帖子- d“{”牌”:{“名称”:“1”品牌,“子域名”:“brand1}}”- v - uemail_address密码
              
进口“fmt”“输入输出”"net/http”“弦”函数主要url: =“https://example.亚博zendesk.com/api/v2/brands”方法: =“职位”有效载荷: =字符串NewReader”{"品牌":{“name”:“Brand 1”,“子域名”:“Brand1”} '要求的事情,犯错: =httpNewRequest方法,url,有效载荷如果犯错! =fmtPrintln犯错返回要求的事情添加“内容类型”,“application / json”要求的事情添加“授权”,“基本< auth-value >”// Base64编码的"username:password"客户端: =http客户端res,犯错: =客户端要求的事情如果犯错! =fmtPrintln犯错返回推迟res身体关闭身体,犯错: =ioReadAllres身体如果犯错! =fmtPrintln犯错返回fmtPrintln字符串身体
Nodejs
              
varaxios需要“axios”var数据JSONstringify“品牌”“名称”“1”品牌,“子域名”“Brand1”var配置方法“职位”,url“https://example.亚博zendesk.com/api/v2/brands”,“内容类型”“application / json”,“授权”的基本< auth-value >”,// Base64编码的"username:password",数据数据,axios配置然后函数响应控制台日志JSONstringify响应数据函数错误控制台日志错误
Python
              
进口请求进口jsonurl“https://example.亚博zendesk.com/api/v2/brands”有效载荷json加载”““{"品牌":{“name”:“Brand 1”,“子域名”:“Brand1”}”“”“内容类型”“application / json”,响应请求请求“职位”,url,身份验证“<用户名>”,' <密码> ',,json有效载荷打印响应文本
Ruby
              
需要"net/http”uriURI“https://example.亚博zendesk.com/api/v2/brands”请求HTTP帖子uri,“内容类型”“application / json”请求身体“品牌”“名称”“1”品牌,“子域名”“Brand1”请求basic_auth“用户名”,“密码”响应HTTP开始uri主机名,uri港口,use_ssl真正的|http|http请求请求结束

示例响应(年代)

201年创建
              
//状态201已创建“品牌”“活跃”真正的,“brand_url”“https://brand1.亚博zendesk.com”,“created_at”“2019 - 08 - 06 - t02:43:39z”,“默认”真正的,“has_help_center”真正的,“help_center_state”“启用”,“host_mapping”“brand1.com”,“id”360002783572,“is_deleted”,“标志”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/logos/brand1_logo.png”,“file_name”“brand1_logo.png”,“id”928374,“mapped_content_url”“https://company.com/logos/brand1_logo.png”,“大小”166144,“缩略图”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_thumb.png”,“file_name”“brand1_logo_thumb.png”,“id”928375,“mapped_content_url”“https://company.com/photos/brand1_logo_thumb.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928375.json”,“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_small.png”,“file_name”“brand1_logo_small.png”,“id”928376,“mapped_content_url”“https://company.com/photos/brand1_logo_small.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928376.json”,“url”“https://company.亚博zendesk.com/api/v2/attachments/928374.json”,“名称”“1”品牌,“signature_template”“{{agent.signature}}”,“子域名”“hello world”,“ticket_form_ids”360000660811,“updated_at”“2019 - 08 - 06 - t02:43:40z”,“url”“https://company.亚博zendesk.com/api/v2/brands/360002783572.json”

更新品牌

  • 把/ api / v2 /品牌/ {brand_id}

返回一个更新后的品牌。

允许

  • 管理员

更新品牌形象

可以通过使用更新品牌端点上传本地文件来更新品牌图像。看到使用旋度有关更多信息,请参见下面的部分。

参数

的名字 类型 要求 描述
brand_id 整数 路径 真正的 品牌标识

例子的身体

             
“品牌”“活跃”真正的,“host_mapping”“brand1.com”,“名称”“1”品牌,“子域名”“Brand1”

代码示例

旋度

使用JSON更新品牌细节。

              
旋度https://子域名.亚博zendesk.com/api/v2/brands/brand_id. json- h“application / json内容类型:- x将- d“{”牌”:{“名称”:“1”品牌,“子域名”:“brand1”“host_mapping”:“brand1.com”,“活动”:真正}}”- v - uemail_address密码
旋度

通过上传本地形象文件更新品牌形象。

              
旋度- v - uemail_address密码- x将- f“品牌(商标)[uploaded_data](电子邮件保护)/道路/ /图像/ image.jpg”https://子域名.亚博zendesk.com/api/v2/brands/brand_id. json
              
进口“fmt”“输入输出”"net/http”“弦”函数主要url: =“https://example.亚博zendesk.com/api/v2/brands/360002783572”方法: =“把”有效载荷: =字符串NewReader”{"品牌":{“活跃”:没错,“host_mapping”:“brand1.com”,“name”:“Brand 1”,“子域名”:“Brand1”} '要求的事情,犯错: =httpNewRequest方法,url,有效载荷如果犯错! =fmtPrintln犯错返回要求的事情添加“内容类型”,“application / json”要求的事情添加“授权”,“基本< auth-value >”// Base64编码的"username:password"客户端: =http客户端res,犯错: =客户端要求的事情如果犯错! =fmtPrintln犯错返回推迟res身体关闭身体,犯错: =ioReadAllres身体如果犯错! =fmtPrintln犯错返回fmtPrintln字符串身体
Nodejs
              
varaxios需要“axios”var数据JSONstringify“品牌”“活跃”真正的,“host_mapping”“brand1.com”,“名称”“1”品牌,“子域名”“Brand1”var配置方法“把”,url“https://example.亚博zendesk.com/api/v2/brands/360002783572”,“内容类型”“application / json”,“授权”的基本< auth-value >”,// Base64编码的"username:password",数据数据,axios配置然后函数响应控制台日志JSONstringify响应数据函数错误控制台日志错误
Python
              
进口请求进口jsonurl“https://example.亚博zendesk.com/api/v2/brands/360002783572”有效载荷json加载”““{"品牌":{“活跃”:没错,“host_mapping”:“brand1.com”,“name”:“Brand 1”,“子域名”:“Brand1”}”“”“内容类型”“application / json”,响应请求请求“把”,url,身份验证“<用户名>”,' <密码> ',,json有效载荷打印响应文本
Ruby
              
需要"net/http”uriURI“https://example.亚博zendesk.com/api/v2/brands/360002783572”请求HTTPuri,“内容类型”“application / json”请求身体“品牌”“活跃”真正的,“host_mapping”“brand1.com”,“名称”“1”品牌,“子域名”“Brand1”请求basic_auth“用户名”,“密码”响应HTTP开始uri主机名,uri港口,use_ssl真正的|http|http请求请求结束

示例响应(年代)

200好了
              
// Status 200 OK“品牌”“活跃”真正的,“brand_url”“https://brand1.亚博zendesk.com”,“created_at”“2019 - 08 - 06 - t02:43:39z”,“默认”真正的,“has_help_center”真正的,“help_center_state”“启用”,“host_mapping”“brand1.com”,“id”360002783572,“is_deleted”,“标志”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/logos/brand1_logo.png”,“file_name”“brand1_logo.png”,“id”928374,“mapped_content_url”“https://company.com/logos/brand1_logo.png”,“大小”166144,“缩略图”“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_thumb.png”,“file_name”“brand1_logo_thumb.png”,“id”928375,“mapped_content_url”“https://company.com/photos/brand1_logo_thumb.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928375.json”,“content_type”“图像/ png”,“content_url”“https://company.亚博zendesk.com/photos/brand1_logo_small.png”,“file_name”“brand1_logo_small.png”,“id”928376,“mapped_content_url”“https://company.com/photos/brand1_logo_small.png”,“大小”58298,“url”“https://company.亚博zendesk.com/api/v2/attachments/928376.json”,“url”“https://company.亚博zendesk.com/api/v2/attachments/928374.json”,“名称”“1”品牌,“signature_template”“{{agent.signature}}”,“子域名”“hello world”,“ticket_form_ids”360000660811,“updated_at”“2019 - 08 - 06 - t02:43:40z”,“url”“https://company.亚博zendesk.com/api/v2/brands/360002783572.json”

删除品牌

  • 删除/ api / v2 /品牌/ {brand_id}

删除品牌。

允许

  • 管理员

参数

的名字 类型 要求 描述
brand_id 整数 路径 真正的 品牌标识

代码示例

旋度
              
旋度https://子域名.亚博zendesk.com/api/v2/brands/brand_id. json-X DELETE -v -uemail_address密码
              
进口“fmt”“输入输出”"net/http”函数主要url: =“https://example.亚博zendesk.com/api/v2/brands/360002783572”方法: =“删除”要求的事情,犯错: =httpNewRequest方法,url,如果犯错! =fmtPrintln犯错返回要求的事情添加“内容类型”,“application / json”要求的事情添加“授权”,“基本< auth-value >”// Base64编码的"username:password"客户端: =http客户端res,犯错: =客户端要求的事情如果犯错! =fmtPrintln犯错返回推迟res身体关闭身体,犯错: =ioReadAllres身体如果犯错! =fmtPrintln犯错返回fmtPrintln字符串身体
Nodejs
              
varaxios需要“axios”var配置方法“删除”,url“https://example.亚博zendesk.com/api/v2/brands/360002783572”,“内容类型”“application / json”,“授权”的基本< auth-value >”,// Base64编码的"username:password",axios配置然后函数响应控制台日志JSONstringify响应数据函数错误控制台日志错误
Python
              
进口请求url“https://example.亚博zendesk.com/api/v2/brands/360002783572”“内容类型”“application / json”,响应请求请求“删除”,url,身份验证“<用户名>”,' <密码> ',打印响应文本
Ruby
              
需要"net/http”uriURI“https://example.亚博zendesk.com/api/v2/brands/360002783572”请求HTTP删除uri,“内容类型”“application / json”请求basic_auth“用户名”,“密码”响应HTTP开始uri主机名,uri港口,use_ssl真正的|http|http请求请求结束

示例响应(年代)

204无内容
              
//状态204无内容

检查主机映射的有效性

  • GET / api / v2 /品牌/ check_host_mapping吗?host_mapping={host_mapping}&子域名={子域名}

返回一个JSON对象,确定主机映射对给定子域是否有效。

允许

  • 管理员

参数

的名字 类型 要求 描述
host_mapping 字符串 查询 真正的 到某个品牌的主机映射(如果有的话)(只有管理员才能查看该键)
子域名 字符串 查询 真正的 指定Zendesk帐户地址的子域亚博

代码示例

旋度
              
旋度“https://{子域名}.zendes亚博k.com/api/v2/brands/check_host_mapping.json ? host_mapping = {host_mapping}子域名={子域名}'- v - uemail_address密码
              
进口“fmt”“输入输出”"net/http”函数主要url: =“https://example.亚博zendesk.com/api/v2/brands/check_host_mapping?host_mapping=brand1.com&subdomain=Brand1”方法: =“获得”要求的事情,犯错: =httpNewRequest方法,url,如果犯错! =fmtPrintln犯错返回要求的事情添加“内容类型”,“application / json”要求的事情添加“授权”,“基本< auth-value >”// Base64编码的"username:password"客户端: =http客户端res,犯错: =客户端要求的事情如果犯错! =fmtPrintln犯错返回推迟res身体关闭身体,犯错: =ioReadAllres身体如果犯错! =fmtPrintln犯错返回fmtPrintln字符串身体
Nodejs
              
varaxios需要“axios”var配置方法“得到”,url“https://example.亚博zendesk.com/api/v2/brands/check_host_mapping”,“内容类型”“application / json”,“授权”的基本< auth-value >”,// Base64编码的"username:password",参数个数“host_mapping”“brand1.com”,“子域名”“Brand1”,,axios配置然后函数响应控制台日志JSONstringify响应数据函数错误控制台日志错误
Python
              
进口请求url“https://example.亚博zendesk.com/api/v2/brands/check_host_mapping?host_mapping=brand1.com&subdomain=Brand1”“内容类型”“application / json”,响应请求请求“获得”,url,身份验证“<用户名>”,' <密码> ',打印响应文本
Ruby
              
需要"net/http”uriURI“https://example.亚博zendesk.com/api/v2/brands/check_host_mapping”uri查询URIencode_www_form“host_mapping”“brand1.com”,“子域名”“Brand1”请求HTTP得到uri,“内容类型”“application / json”请求basic_auth“用户名”,“密码”响应HTTP开始uri主机名,uri港口,use_ssl真正的|http|http请求请求结束

示例响应(年代)

200好了
              
// Status 200 OK“cname”“bar.亚博zendesk.com”,“is_valid”真正的

检查已有品牌的主机映射有效性

  • GET / api / v2 /品牌/ {brand_id} / check_host_mapping

返回一个JSON对象,确定主机映射对给定品牌是否有效。

允许

  • 管理员

参数

的名字 类型 要求 描述
brand_id 整数 路径 真正的 品牌标识

代码示例

旋度
              
旋度“https://{子域名}.zendes亚博k.com/api/v2/brands/ {brand_id} / check_host_mapping.json”- v - uemail_address密码
              
进口“fmt”“输入输出”"net/http”函数主要url: =“https://example.亚博zendesk.com/api/v2/brands/360002783572/check_host_mapping”方法: =“获得”要求的事情,犯错: =httpNewRequest方法,url,如果犯错! =fmtPrintln犯错返回要求的事情添加“内容类型”,“application / json”要求的事情添加“授权”,“基本< auth-value >”// Base64编码的"username:password"客户端: =http客户端res,犯错: =客户端要求的事情如果犯错! =fmtPrintln犯错返回推迟res身体关闭身体,犯错: =ioReadAllres身体如果犯错! =fmtPrintln犯错返回fmtPrintln字符串身体
Nodejs
              
varaxios需要“axios”var配置方法“得到”,url“https://example.亚博zendesk.com/api/v2/brands/360002783572/check_host_mapping”,“内容类型”“application / json”,“授权”的基本< auth-value >”,// Base64编码的"username:password",axios配置然后函数响应控制台日志JSONstringify响应数据函数错误控制台日志错误
Python
              
进口请求url“https://example.亚博zendesk.com/api/v2/brands/360002783572/check_host_mapping”“内容类型”“application / json”,响应请求请求“获得”,url,身份验证“<用户名>”,' <密码> ',打印响应文本
Ruby
              
需要"net/http”uriURI“https://example.亚博zendesk.com/api/v2/brands/360002783572/check_host_mapping”请求HTTP得到uri,“内容类型”“application / json”请求basic_auth“用户名”,“密码”响应HTTP开始uri主机名,uri港口,use_ssl真正的|http|http请求请求结束

示例响应(年代)

200好了
              
// Status 200 OK“cname”“bar.亚博zendesk.com”,“is_valid”真正的