gumeng

package module
v0.0.0-...-02e572e Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

gumeng

友盟数据统计基础库

Usage

// TestEventKeyUV
func TestEventKeyUV(t *testing.T) {
	uapp := &Uapp{
		ApiKey:      "",
		ApiSecurity: "",
		GateWay:     "https://gateway.open.umeng.com",
		AppKey:      "",
		Debug:       true,
	}
	newData, err := uapp.GetNewUserData("2020-12-28", "2020-12-28")
	if err != nil {
		t.Fatal(err)
	}
	t.Logf("resp new-> %#v", newData)

	activeData, err := uapp.GetActiveUserData("2020-12-28", "2020-12-28")
	if err != nil {
		t.Fatal(err)
	}
	t.Logf("resp active-> %#v", activeData)

	eventData, err := uapp.GetEventKeyUV("com.app.home", "2020-12-28", "2020-12-28")
	if err != nil {
		t.Fatal(err)
	}
	t.Logf("resp event-> %#v", eventData)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(apiSecurity string, path string, params url.Values) string

Sign 请求签名

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