wechat

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

QQ SDK for Go

Go Go Report Card pkg version

使用Golang开发的QQSDK,简单、易用。

基于 原作者 silenceper/wechat 的原有基础上编写的 QQ SDK

文档 && 例子

API列表

Wechat SDK 2.0 文档

Wechat SDK 2.0 例子

快速开始

import "github.com/polichan/qq"

以下是一个QQ公众号处理消息接收以及回复的例子:

//使用memcache保存access_token,也可选择redis或自定义cache
q := qq.NewQQ()
memory := cache.NewMemory()
cfg := &offConfig.Config{
    AppID:     "xxx",
    AppSecret: "xxx",
    Token:     "xxx",
    //EncodingAESKey: "xxxx",
    Cache: memory,
}

目录说明

  • miniprogram: 小程序API
  • doc: api文档

贡献

  • API列表中查看哪些API未实现
  • 提交issue,描述需要贡献的内容
  • 完成更改后,提交PR

License

Apache License, Version 2.0

Documentation

Overview

Package wechat provide wechat sdk for go

使用Golang开发的QQSDK,简单、易用。

更多信息:https://github.com/silenceper/wechat

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QQ

type QQ struct {
	// contains filtered or unexported fields
}

QQ struct

func NewWechat

func NewWechat() *QQ

NewWechat init

func (*QQ) GetMiniProgram

func (wc *QQ) GetMiniProgram(cfg *miniConfig.Config) *miniprogram.MiniProgram

GetMiniProgram 获取小程序的实例

func (*QQ) SetCache

func (wc *QQ) SetCache(cahce cache.Cache)

SetCache 设置cache

Directories

Path Synopsis
config
Package config 小程序config配置
Package config 小程序config配置

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL