20.4.1 獲取應用
該API用於獲取企業號某個應用的基本信息,包括頭像、暱稱、賬號類型、認證類型、可見範圍等信息。
獲取應用的接口如下。
https:// qyapi.weixin.qq.com/cgi-bin/agent/get?access_token=ACCESS_TOKEN&agentid=AGENTID
上述接口的參數說明如表20-17所示。
表20-17 獲取應用接口的參數說明
正確提交時,返回的數據示例如下。
{ "errcode":"0", "errmsg":"ok", "agentid":"1", "name":"NAME", "square_logo_url":"xxxxxxxx", "round_logo_url":"yyyyyyyy", "description":"desc", "allow_userinfos":{ "user":[ { "userid":"id1", "status":"1" }, { "userid":"id2", "status":"1" }, { "userid":"id3", "status":"1" } ] }, "allow_partys":{ "partyid":[1] }, "allow_tags":{ "tagid":[1,2,3] }, "close":0, "redirect_domain":"www.qq.com", "report_location_flag":0, "isreportuser":0, "isreportenter":0, "chat_extension_url":"http:// www.qq.com", "type":1 }
上述數據的參數說明如表20-18所示。
表20-18 獲取應用接口返回參數說明