From 664f8f8fdfe965512750bb2409ddd4de0d37c031 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 17 Apr 2017 12:39:41 +0900 Subject: [PATCH] fix build --- report.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/report.go b/report.go index 43ec64c..73fc452 100644 --- a/report.go +++ b/report.go @@ -11,14 +11,14 @@ type Report struct { ActionTaken bool `json:"action_taken"` } -// GetReport return report of the current user. -func (c *Client) GetReport(ctx context.Context) (*Report, error) { - var reports Report +// GetReports return report of the current user. +func (c *Client) GetReports(ctx context.Context) ([]*Report, error) { + var reports []*Report err := c.doAPI(ctx, http.MethodGet, "/api/v1/reports", nil, &reports) if err != nil { return nil, err } - return &reports, nil + return reports, nil } // Report reports the report