module
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: May 7, 2021
License: Apache-2.0
Opens a new window with license information.
README
¶
aff-sdk-go
用户可基于该SDK使用Go语言接入爱番番的各项产品
Example
package main
import (
"fmt"
"github.com/ado1ph/aff-sdk-go/auth"
)
func main() {
a := auth.NewAuth("234","123")
a.Expire = 1000000
a.Header = map[string]string{
"Host": "api-aifanfan.baidu.com",
}
a.Path = "/common/v1/acct/init"
a.Time = "2006-01-02T15:04:05Z"
sign := a.Sign(auth.Post)
fmt.Print("the sign is %s", sign)
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.