WeChat public platform Development (74) User Group Management _php Tutorial

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

  • Related Article

    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.