Documentation ¶
Overview ¶
Package pstncc OA/紧急通知应用
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Call ¶
func Call(ctx *corporation.App, payload []byte) (resp []byte, err error)
发起语音电话
通过此接口发起语音电话,提醒员工查看应用推送的重要消息。
See: https://work.weixin.qq.com/api/doc/90000/90135/91627
POST https://qyapi.weixin.qq.com/cgi-bin/pstncc/call?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/oa/pstncc" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := pstncc.Call(ctx, payload) fmt.Println(resp, err) }
Output:
func GetStates ¶
func GetStates(ctx *corporation.App, payload []byte) (resp []byte, err error)
获取接听状态
通过此接口,了解员工是否已接听语音电话。
See: https://work.weixin.qq.com/api/doc/90000/90135/91628
POST https://qyapi.weixin.qq.com/cgi-bin/pstncc/getstates?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/cvblood/qywxapi/corporation" "github.com/cvblood/qywxapi/corporation/apis/oa/pstncc" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := pstncc.GetStates(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.