diff --git a/report.go b/report.go index d68a1b6..8966c47 100644 --- a/report.go +++ b/report.go @@ -19,11 +19,11 @@ func GetReports() ([]*Report, error) { return reports, nil } -func ReportAccount(accountID ID, ids []ID, comment string) (*Report, error) { +func (a *Account) Report(statuses []*Status, comment string) (*Report, error) { params := url.Values{} - params.Set("account_id", string(accountID)) - for _, id := range ids { - params.Add("status_ids[]", string(id)) + params.Set("account_id", a.GetID()) + for _, status := range statuses { + params.Add("status_ids[]", status.GetID()) } params.Set("comment", comment) var report Report