Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Add methods to get uninstall rawdata reports #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions service/rawdata/uninstalls.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package rawdata

import (
"github.com/eure/appsflyer/dispatcher"
"github.com/eure/appsflyer/model/rawdata"
)

const endpointUninstallReport = "uninstall_events_report/v5"

func GetUninstallReports(client *dispatcher.Client) ([]rawdata.Report, error) {
return getReports(endpointInstallReport, client)
}

func GetEachUninstallReport(client *dispatcher.Client, f func(report rawdata.Report)) error {
return getEachReport(endpointInstallReport, client, f)
}