appsflyer

module
v0.0.0-...-bc15e7f Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2016 License: MIT

README ¶

🔥 Caution 🔥

No maintained.

Please see https://github.com/eure/appsflyer .

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/gotokatsuya/appsflyer

Usage

import (
	"fmt"

	"github.com/gotokatsuya/appsflyer/dispatcher"
	srawdata "github.com/gotokatsuya/appsflyer/service/rawdata"
)

func GetInAppEventsReports() error {
	var (
		apiToken = "xxx-xxx-xxx"
		appID    = "xxx-xxx-xxx"
		fromDate = "2016-08-20"
		toDate   = "2016-08-21"
	)
	client := dispatcher.NewClientWithParam(apiToken, appID, fromDate, toDate)

	// export APPSFLYER_API_TOKEN=""
	// client := dispatcher.NewClient(appID, fromDate, toDate)
	
	reports, err := srawdata.GetInAppEventsReports(client)
	if err != nil {
		return err
	}
	fmt.Println(reports)
}
RawData

https://support.appsflyer.com/hc/en-us/articles/208387843-Raw-Data-Reports-V5-

This library supports below header names.

type Report struct {
	AttributedTouchType string `json:"attributed_touch_type" csv:"Attributed Touch Type"`
	AttributedTouchTime string `json:"attributed_touch_time" csv:"Attributed Touch Time"`
	InstallTime         string `json:"install_time" csv:"Install Time"`
	EventTime           string `json:"event_time" csv:"Event Time"`
	EventName           string `json:"event_name" csv:"Event Name"`
	MediaSource         string `json:"media_source" csv:"Media Source"`
	Channel             string `json:"channel" csv:"Channel"`
	Campaign            string `json:"campaign" csv:"Campaign"`
	Ad                  string `json:"ad" csv:"Ad"`
	AdvertisingID       string `json:"advertising_id" csv:"Advertising ID"`
	IDFA                string `json:"idfa" csv:"IDFA"`
	CustomerUserID      string `json:"customer_user_id" csv:"Customer User ID"`
	IsRetargeting       string `json:"is_retargeting" csv:"Is Retargeting"`
}

Directories ¶

Path Synopsis
model
service
csv

Jump to

Keyboard shortcuts

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