WeChat public platform development (74) User Group management _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.