linkv_sdk

package module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

API Reference Build Status Apache V2 License

go-sdk

LINKV SDK for the go programming language.

Installing

go get "github.com/linkv-io/go-sdk"

Usage

package main

import (
	"fmt"
	linkv "github.com/linkv-io/go-sdk"
)

func main() {
	appID := "qOPBZYGqnqgCSJCobhLFRtvvJzeLLzDR"
	appSecret := "1EE940FB2E0AB99368DDEF4A7446A17E3418CE9B1721464624A504BBD977A4FC1477F6A1A02B22AF64070A49C32E05B1AC23E47D86BF6C490D637A42735E6DF7589D5644B3DF1BCD489186940ADE4C3D61C6028FCAF90D57FDCA7BA1888DD4B060B2996BCF41087A8CDEE52D775548166FC92B83D88125434597B9394AC3F7C81C9B8A41C0191B0A09AD59F20881A087574C51B0288A1867D8B7EE9CABC97C322F6469E4E19261C7A26527CD65299A564B319F42DB70E016537A5AFAAE896BEE"
	if err := linkv.Init(appID, appSecret); err != nil {
		fmt.Println(err)
		return
	}
	imConfig := linkv.IM.GetConfig()
	fmt.Println(imConfig)
	rtcConfig := linkv.RTC.GetConfig()
	fmt.Println(rtcConfig)
}

License

This SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IM  = &im.IM{}
	RTC = &rtc.RTC{}
)

Functions

func Init

func Init(appID, appSecret string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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