Skip to content
/ youdu Public
forked from addcnos/youdu

🚀 Youdu SDK is a Go package that provides API implementation related to Youdu IM

License

Notifications You must be signed in to change notification settings

pr-fork/youdu

 
 

Repository files navigation

Youdu Go SDK

Lint GoDoc Go Report Card Language MIT license

🚀 Youdu SDK is a Go package that provides API implementation related to Youdu IM

Getting Started

Features

Installation

go get github.com/addcnos/youdu/v2

Usage

Please refer to the Documentation

package main

import (
	"context"
	"fmt"

	"github.com/addcnos/youdu/v2"
)

func main() {
	client := youdu.NewClient(&youdu.Config{
		Addr:   "http://examaple",
		Buin:   111222333,
		AppId:  "111222333",
		AesKey: "111333445",
	})

	resp, err := client.SendTextMessage(context.Background(), youdu.TextMessageRequest{
		ToUser:  "11111",
		MsgType: youdu.MsgTypeText,
		Text: youdu.MessageText{
			Content: "hello",
		},
	})
	if err != nil {
		panic(err)
	}

	fmt.Println(resp)
}

Contributing

Very welcome to join us! Raise an Issue or submit a Pull Request.

License

MIT License © 2022-2023 addcnos

About

🚀 Youdu SDK is a Go package that provides API implementation related to Youdu IM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%