Documentation ¶
Overview ¶
Package meetingroom 会议室
Index ¶
- func Add(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func Book(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func CancelBook(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func Del(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func Edit(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func GetBookingInfo(ctx *corporation.App, payload []byte) (resp []byte, err error)
- func List(ctx *corporation.App, payload []byte) (resp []byte, err error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(ctx *corporation.App, payload []byte) (resp []byte, err error)
添加会议室
企业可通过此接口添加一个会议室。
See: https://work.weixin.qq.com/api/doc/90000/90135/92793
POST https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/add?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/meetingroom" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := meetingroom.Add(ctx, payload) fmt.Println(resp, err) }
Output:
func Book ¶
func Book(ctx *corporation.App, payload []byte) (resp []byte, err error)
预定会议室
企业可通过此接口预定会议室并自动关联日程。
See: https://work.weixin.qq.com/api/doc/90000/90135/92794
POST https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/book?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/meetingroom" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := meetingroom.Book(ctx, payload) fmt.Println(resp, err) }
Output:
func CancelBook ¶
func CancelBook(ctx *corporation.App, payload []byte) (resp []byte, err error)
取消预定会议室
企业可通过此接口取消会议室的预定
See: https://work.weixin.qq.com/api/doc/90000/90135/92794
POST https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/cancel_book?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/meetingroom" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := meetingroom.CancelBook(ctx, payload) fmt.Println(resp, err) }
Output:
func Del ¶
func Del(ctx *corporation.App, payload []byte) (resp []byte, err error)
删除会议室
企业可通过此接口删除指定的会议室。
See: https://work.weixin.qq.com/api/doc/90000/90135/92793
POST https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/del?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/meetingroom" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := meetingroom.Del(ctx, payload) fmt.Println(resp, err) }
Output:
func Edit ¶
func Edit(ctx *corporation.App, payload []byte) (resp []byte, err error)
编辑会议室
企业可通过此接口编辑相关会议室的基本信息。
See: https://work.weixin.qq.com/api/doc/90000/90135/92793
POST https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/edit?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/meetingroom" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := meetingroom.Edit(ctx, payload) fmt.Println(resp, err) }
Output:
func GetBookingInfo ¶
func GetBookingInfo(ctx *corporation.App, payload []byte) (resp []byte, err error)
查询会议室的预定信息
企业可通过此接口查询相关会议室在指定时间段的预定情况,如是否已被预定,预定者的userid等信息,不支持跨天查询。
See: https://work.weixin.qq.com/api/doc/90000/90135/92794
POST https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/get_booking_info?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/meetingroom" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := meetingroom.GetBookingInfo(ctx, payload) fmt.Println(resp, err) }
Output:
func List ¶
func List(ctx *corporation.App, payload []byte) (resp []byte, err error)
查询会议室
企业可通过此接口查询满足条件的会议室。
See: https://work.weixin.qq.com/api/doc/90000/90135/92793
POST https://qyapi.weixin.qq.com/cgi-bin/oa/meetingroom/list?access_token=ACCESS_TOKEN
Example ¶
package main import ( "fmt" "github.com/fastwego/wechat4work/corporation" "github.com/fastwego/wechat4work/corporation/apis/meetingroom" ) func main() { var ctx *corporation.App payload := []byte("{}") resp, err := meetingroom.List(ctx, payload) fmt.Println(resp, err) }
Output:
Types ¶
This section is empty.