Medium changed API's Snippet to Subtitle

This commit is contained in:
Morgan Bazalgette 2017-02-17 21:18:41 +01:00
parent 0315dd61d2
commit 9b296fc8ed
No known key found for this signature in database
GPG Key ID: 40D328300D245DA5

View File

@ -44,7 +44,7 @@ type mediumUser struct {
}
type mediumPostVirtuals struct {
Snippet string `json:"snippet"`
Subtitle string `json:"subtitle"`
WordCount int `json:"wordCount"`
ReadingTime float64 `json:"readingTime"`
}
@ -153,7 +153,7 @@ func BlogPostsGET(md common.MethodData) common.CodeMessager {
p.Creator.Name = cr.Name
p.Creator.Username = cr.Username
p.Snippet = mp.Virtuals.Snippet
p.Snippet = mp.Virtuals.Subtitle
p.WordCount = mp.Virtuals.WordCount
p.ReadingTime = mp.Virtuals.ReadingTime