Appearance
朋友圈
get_moments
获取朋友圈动态。
python
wechat.get_moments(client_id, max_id="0", timeout=None)| 参数 | 类型 | 说明 |
|---|---|---|
| client_id | int | 客户端ID |
| max_id | str | 翻页ID("0"为首页) |
| timeout | int | 超时时间(秒) |
get_friend_moments
获取好友的朋友圈。
python
wechat.get_friend_moments(client_id, username, first_page_md5="", max_id="0", timeout=None)| 参数 | 类型 | 说明 |
|---|---|---|
| client_id | int | 客户端ID |
| username | str | 好友用户名 |
| first_page_md5 | str | 首页MD5 |
| max_id | str | 翻页ID |
| timeout | int | 超时时间(秒) |
comment_moment
评论朋友圈。
python
wechat.comment_moment(client_id, object_id, content, timeout=None)| 参数 | 类型 | 说明 |
|---|---|---|
| client_id | int | 客户端ID |
| object_id | str | 动态ID |
| content | str | 评论内容 |
| timeout | int | 超时时间(秒) |
like_moment
点赞朋友圈。
python
wechat.like_moment(client_id, object_id, timeout=None)| 参数 | 类型 | 说明 |
|---|---|---|
| client_id | int | 客户端ID |
| object_id | str | 动态ID |
| timeout | int | 超时时间(秒) |
post_moment
发布朋友圈。
python
wechat.post_moment(client_id, object_desc, timeout=None)| 参数 | 类型 | 说明 |
|---|---|---|
| client_id | int | 客户端ID |
| object_desc | str | 朋友圈内容描述 |
| timeout | int | 超时时间(秒) |
upload_image
上传朋友圈图片。
python
wechat.upload_image(client_id, image_path, timeout=None)| 参数 | 类型 | 说明 |
|---|---|---|
| client_id | int | 客户端ID |
| image_path | str | 图片路径 |
| timeout | int | 超时时间(秒) |