mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user