WeChat

App · 12 actions

Manage followers, tags and menus on a WeChat Official Account.

Actions

ActionWhat it does
Create follower tagCreate follower tag.
Delete follower tagDelete follower tag.
Get active menuGet active menu.
Get followerGet follower.
List follower tagsList follower tags.
List followersList followers.
List followers with a tagList followers with a tag.
List tags for a followerList tags for a follower.
Remove tag from followersRemove tag from followers.
Rename follower tagRename follower tag.
Send customer service textSend customer service text.
Tag followersTag followers.

Create follower tag

Create follower tag.

Inputs

NamenametextRequired
Name of the follower tag.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "tag": {
      "id": 1,
      "name": "example"
    }
  }
}

Delete follower tag

Delete follower tag.

Inputs

Tag IDtag_idnumberRequired
Tag ID to delete.At least 1.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "errcode": 1,
    "errmsg": "example"
  }
}

Get active menu

Get active menu.

Inputs

None.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "is_menu_open": 1,
    "selfmenu_info": {}
  }
}

Get follower

Get follower.

Inputs

OpenidopenidtextRequired
Official Account OpenID from List followers.
Languagelanguagetext
Language of the follower response.One of: zh_CN (Zh cn), zh_TW (Zh tw), en.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "openid": "example",
    "subscribe": 1
  }
}

List follower tags

List follower tags.

Inputs

None.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "tags": [
      {
        "count": 1,
        "id": 1,
        "name": "example"
      }
    ]
  }
}

List followers

List followers.

Inputs

Cursorcursortext
Next OpenID from the previous page.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "count": 1,
    "data": {
      "openid": [
        "example"
      ]
    },
    "next_openid": "example",
    "total": 1
  }
}

List followers with a tag

List followers with a tag.

Inputs

Tag IDtag_idnumberRequired
Tag ID from List follower tags.At least 1.
Cursorcursortext
Next OpenID from the previous page.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "count": 1,
    "data": {
      "openid": [
        "example"
      ]
    },
    "next_openid": "example",
    "total": 1
  }
}

List tags for a follower

List tags for a follower.

Inputs

OpenidopenidtextRequired
Official Account OpenID from List followers.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "tagid_list": [
      1
    ]
  }
}

Remove tag from followers

Remove tag from followers.

Inputs

Tag IDtag_idnumberRequired
Tag ID from List follower tags.At least 1.
OpenidsopenidslistRequired
OpenIDs from List followers.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "errcode": 1,
    "errmsg": "example"
  }
}

Rename follower tag

Rename follower tag.

Inputs

Tag IDtag_idnumberRequired
Choose the tag ID from List follower tags.At least 1.
NamenametextRequired
New name for the tag.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "errcode": 1,
    "errmsg": "example"
  }
}

Send customer service text

Send customer service text.

Inputs

OpenidopenidtextRequired
OpenID of the recipient.
TexttexttextRequired
Message to send.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "errcode": 1,
    "errmsg": "example"
  }
}

Tag followers

Tag followers.

Inputs

Tag IDtag_idnumberRequired
Tag ID from List follower tags.At least 1.
OpenidsopenidslistRequired
OpenIDs from List followers.

Outputs

dataobject
The response from WeChat.
Example output
{
  "data": {
    "errcode": 1,
    "errmsg": "example"
  }
}

On this page