From f4e0d5463eb77f009f92659ec16ac231765b341e Mon Sep 17 00:00:00 2001 From: FUJIURA Toyonori Date: Mon, 23 Oct 2017 10:09:08 +0900 Subject: [PATCH] Change api specification. --- accounts.go | 2 +- status.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts.go b/accounts.go index 59b8ec8..4dde023 100644 --- a/accounts.go +++ b/accounts.go @@ -10,7 +10,7 @@ import ( // Account hold information for mastodon account. type Account struct { - ID int64 `json:"id"` + ID string `json:"id"` Username string `json:"username"` Acct string `json:"acct"` DisplayName string `json:"display_name"` diff --git a/status.go b/status.go index 5191481..ede75af 100644 --- a/status.go +++ b/status.go @@ -11,7 +11,7 @@ import ( // Status is struct to hold status. type Status struct { - ID int64 `json:"id"` + ID string `json:"id"` CreatedAt time.Time `json:"created_at"` InReplyToID interface{} `json:"in_reply_to_id"` InReplyToAccountID interface{} `json:"in_reply_to_account_id"`