Public platform development User Group Management Interface query group creation group modify group name move User Group
Author: Fang Times studio
Address: http://www.cnblogs.com/txw1958/p/weixin74-group-manage.html
Developers can use interfaces to query, create, and modify groups on the public platform, or use interfaces to move users to a group as needed.
Create Group
A public account can create up to 500 groups.API call request description
Http Request Method: POST (Please use https protocol) https://api.weixin.qq.com/cgi-bin/groups/create? Access_token = ACCESS_TOKENPOST Data Format: jsonPOST data example: {"group": {"name": "test "}}
Parameter description
Parameters |
Description |
Access_token |
Interface call credential |
Name |
Group Name (up to 30 characters) |
Return descriptionExample of a JSON data packet returned normally:
{ "group": { "id": 107, "name": "test" }}
Parameter description
Parameters |
Description |
Id |
Group id, allocated |
Name |
Group name, UTF-8 encoded |
Example of JSON data packet in case of an error (This example shows an invalid AppID error ):
{"errcode":40013,"errmsg":"invalid appid"}
Create Code:
= '{"Group": {"name": "friend"}' = "https://api.weixin.qq.com/cgi-bin/groups/create? Access_token = token "= https_post (, (https_post (, =, CURLOPT_URL, expires, CURLOPT_SSL_VERIFYHOST, CURLOPT_POST, 1, CURLOPT_POSTFIELDS, expires, 1 = curl_exec (curl_errno ('errno '. curl_error (
Return
(36) "{" group ": {" id ": 100," name ":" friends "}}"
Effect
========================================================== ====
Follow-up methods for fanwe public platform accounts:
1. Address Book-Add friends-search for Public Accounts-search for "fangtimes Studio"
2. Address Book-add friend-search number-Enter "pondbaystudio"
3. Scan the following QR code