Skip to content

taadis/sm-ms-sdk-go

Repository files navigation

sm-ms-sdk-go

SM.MS Home

Due to network issues, users from China Mainland are unable to access SM.MS, we have added an alternate domain name smms.app

SM.MS API Documentation

Usage

get package

go get github.com/taadis/sm-ms-sdk-go

code example

package smmssdk

import (
	"context"
	"fmt"

    "github.com/taadis/sm-ms-sdk-go"
)

func main(){
	ctx := context.Background()
	secretToken := "your_secret_token"
	client := smmssdk.NewClient(
		WithLogEnabled(true),
		WithSecretToken(secretToken),
	)
	req := smmssdk.NewProfileRequest()
	rsp, err := client.Profile(ctx, req)
	if err != nil {
		panic(err)
	}
	fmt.Println("got rsp and to do somethings", rsp.Data)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages