From 546ca6faa1d9aa6f85e625681c148c833b434f85 Mon Sep 17 00:00:00 2001 From: Oleksandr Mykhailiuta Date: Mon, 13 Apr 2020 13:30:27 +0300 Subject: [PATCH] Add methods to get uninstall rawdata reports --- service/rawdata/uninstalls.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 service/rawdata/uninstalls.go diff --git a/service/rawdata/uninstalls.go b/service/rawdata/uninstalls.go new file mode 100644 index 0000000..9b6859b --- /dev/null +++ b/service/rawdata/uninstalls.go @@ -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) +} \ No newline at end of file