Skip to content

AppsFlyer API client library for Go.

License

Notifications You must be signed in to change notification settings

BCJTI/appsflyer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

appsflyer

AppsFlyer API client library for Go.

https://support.appsflyer.com/hc/en-us/articles/207034346-Pull-APIs-Pulling-AppsFlyer-Reports-by-APIs

Installation

$ go get github.com/bcjti/appsflyer

RawData

import (
	"fmt"
	"github.com/bcjti/appsflyer"
)

func main() {

	var (
		apiToken = "xxx-xxx-xxx"
		appID    = "xxx-xxx-xxx"
		fromDate = "2016-08-20"
		toDate   = "2016-08-21"
	)

	client := NewClientWithParam(apiToken, appID, fromDate, toDate)

	// export APPSFLYER_API_TOKEN=""
	// client := NewClient(appID, fromDate, toDate)
	
	reports, err := client.GetRawData(appsflyer.InstallsReport)
	if err != nil {
		panic(err)
	}

	fmt.Println(reports)

}

Maps

import (
	"fmt"
	"github.com/bcjti/appsflyer"
)

func main() {

	var (
		apiToken = "xxx-xxx-xxx"
		appID    = "xxx-xxx-xxx"
		fromDate = "2016-08-20"
		toDate   = "2016-08-21"
	)

	client := NewClientWithParam(apiToken, appID, fromDate, toDate)

	// export APPSFLYER_API_TOKEN=""
	// client := NewClient(appID, fromDate, toDate)

	reports, err :=  client.GetMaps(appsflyer.InstallsReport)
	if err != nil {
        panic(err)
    }

	fmt.Println(reports)

}

About

AppsFlyer API client library for Go.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%