Public platform development (74) user group management. Public platform development user group management interface query group creation group modify group name mobile user group author: Fang times studio address: www. cnblogs. develop a user group management interface on the codrop public platform query a group create a group modify a group name move a 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
Author: Fang times studio address: http://www.cnblogs.com/tx...