Public Platform Development User Group Management Group Management Interface Query Grouping create 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, modify, or use interfaces to move users to a group when needed.
Create groups
A public account that supports creating up to 500 groupings. Interface Invocation Request Description
HTTP request mode: POST (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 |
Invoking interface Credentials |
Name |
Group name (within 30 characters) |
returns A JSON packet example when the description is normal:
{" Group": { "id": 107, "name": "Test" }}
Parameter description
Parameters |
Description |
Id |
Group ID, by assignment |
Name |
Group name, UTF8 encoding |
The JSON packet sample when the error occurred (the example is AppID invalid error):
{"Errcode": 40013, "errmsg": "Invalid AppID"}
To create the code:
= ' {' group ': {' name ': ' Friend '} '</strong></tbody></tbody>= "Https://api.weixin.qq.com/cgi-bin/groups/create?access_token=6j68MFz5WyxI2_ Xrdsj1xfjhzu7c3qtpgc8prbznfqubhe8kbaee_ Medwzi2tdpypax9ljjnkmy1b6-a7dpe2y9l7rdwcjn2qkrhoydyonveek111j7crirnhzfzukpii8vpfpizs7ygcwuangkexg "= Https_post (,(Https_post (,=, Curlopt_url,
, Curlopt_ssl_ Verifypeer,
, Curlopt_ssl_verifyhost,
, Curlopt_post, 1
< Span $curl span>, curlopt_postfields,
, Curlopt_ Returntransfer, 1
= curl_exec (
(Curl_errno (
' errno '. Curl_error (
< span;} span>
/span>
Return
< span="">{"group": {"id": +, "name": "Friend"}} "
Effect
============================================
Double Studio public Platform account attention method:
1. Contacts-Add Friends-Find public number-search "double Studio"
2. Contacts-Add Friends-Search number-enter "Pondbaystudio"
3. Use the QR code below to scan
http://www.bkjia.com/PHPjc/626661.html www.bkjia.com true http://www.bkjia.com/PHPjc/626661.html techarticle Public Platform Development User Group Management Group Management Interface Query Grouping create Group modify group name move User group Author: Fang Times studio Address: Http://www.cnblogs.com/tx