AppsFlyer API client library for Go.
$ go get github.com/bcjti/appsflyer
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)
}
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)
}