aff-sdk-go

module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0

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

Path Synopsis

Jump to

Keyboard shortcuts

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