Due to network issues, users from China Mainland are unable to access SM.MS, we have added an alternate domain name smms.app
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)
}