該API用於設置企業應用的選項設置信息,如地理位置上報等。第三方服務商不能調用該接口設置授權的主頁型應用。
設置應用的接口如下。
https:// qyapi.weixin.qq.com/cgi-bin/agent/set?access_token=ACCESS_TOKEN
設置應用時,POST數據示例如下。
{ "agentid":"5", "report_location_flag":"0", "logo_mediaid":"xxxxx", "name":"NAME", "description":"DESC", "redirect_domain":"xxxxxx", "isreportuser":0, "isreportenter":0, "home_url":"http:// www.qq.com", "chat_extension_url":"http:// www.qq.com" }
上述數據的參數說明如表20-19所示。
表20-19 設置應用接口的參數說明
正確提交時,返回的數據示例如下。
{"errcode":0,"errmsg":"ok"}