Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-11-22 12:25:01 +00:00
parent c2fb06ae73
commit ed691ec515
38 changed files with 806 additions and 806 deletions

View File

@@ -50,7 +50,7 @@ func (t *TwitterService) User(request *UserRequest) (*UserResponse, error) {
type Profile struct {
// the account creation date
CreatedAt string `json:"createdAt"`
CreatedAt string `json:"created_at"`
// the user description
Description string `json:"description"`
// the follower count
@@ -58,7 +58,7 @@ type Profile struct {
// the user id
Id int64 `json:"id,string"`
// The user's profile picture
ImageUrl string `json:"imageUrl"`
ImageUrl string `json:"image_url"`
// the user's location
Location string `json:"location"`
// display name of the user
@@ -99,7 +99,7 @@ type Trend struct {
// name of the trend
Name string `json:"name"`
// the volume of tweets in last 24 hours
TweetVolume int64 `json:"tweetVolume,string"`
TweetVolume int64 `json:"tweet_volume,string"`
// the twitter url
Url string `json:"url"`
}
@@ -114,13 +114,13 @@ type TrendsResponse struct {
type Tweet struct {
// time of tweet
CreatedAt string `json:"createdAt"`
CreatedAt string `json:"created_at"`
// number of times favourited
FavouritedCount int64 `json:"favouritedCount,string"`
FavouritedCount int64 `json:"favourited_count,string"`
// id of the tweet
Id int64 `json:"id,string"`
// number of times retweeted
RetweetedCount int64 `json:"retweetedCount,string"`
RetweetedCount int64 `json:"retweeted_count,string"`
// text of the tweet
Text string `json:"text"`
// username of the person who tweeted