Categorygithub.com/limoo-im/go-sdk
modulepackage
0.0.0-20220716182704-e0a0840b4636
Repository: https://github.com/limoo-im/go-sdk.git
Documentation: pkg.go.dev

# README

go-sdk

Go Report Card Go Reference

Limoo GoLang SDK

Example

With following sample code you can use this SDK and send a message to Limoo:

package main

import (
    "github.com/limoo-im/go-sdk"
    "github.com/limoo-im/go-sdk/types"
)

func main() {
    // create empty client and inialize it
    client := &sdk.LimooClient{}
    err := client.New("https://web.limoo.im", "<username>", "<password>", false)
    if err != nil {
        panic(err)
    }
    
    // print debug log (will print sensitive data)
    sdk.SetDebug(true)
    
    // simply send a message
    err = client.SendMessage(types.SendMessageOptions{
        Text:           "Hello World",
        WorkspaceID:    "<ID of the workspace>",
        ConversationID: "<ID of the conversation>",
    })
    if err != nil {
        panic(err)
    }
}

License

This SDK licensed under Apache-2 license.

# Packages

No description provided by the author

# Functions

print debug messages or not? (will print sensitive information).

# Structs

Main Client you need to create one as a pointer.