equal
deleted
inserted
replaced
15 ) |
15 ) |
16 |
16 |
17 // UserToken represents a user token as returned by the Mastodon API |
17 // UserToken represents a user token as returned by the Mastodon API |
18 type UserToken struct { |
18 type UserToken struct { |
19 AccessToken string `json:"access_token"` |
19 AccessToken string `json:"access_token"` |
20 CreatedAt int `json:"created_at"` |
20 CreatedAt int64 `json:"created_at"` |
21 Scope string `json:"scope"` |
21 Scope string `json:"scope"` |
22 TokenType string `json:"token_type"` |
22 TokenType string `json:"token_type"` |
23 } |
23 } |
24 |
24 |
25 // LoginBasic does basic user authentication |
25 // LoginBasic does basic user authentication |