Documentation ¶
Index ¶
- func BoolValue(b *bool) bool
- func Float64Value(f *float64) float64
- func IntValue(i *int) int
- func StringValue(s *string) string
- func TimeValue(t *time.Time) time.Time
- type Client
- func (c *Client) Request(ctx context.Context, method, path string, params Parameters, resp interface{}) error
- func (c *Client) TweetRetweetedByUsers(ctx context.Context, tweetID string) ([]User, error)
- func (c *Client) UserFriendshipShow(ctx context.Context, sourceUser, targetUser string) (*UserFriendshipResponse, error)
- func (c *Client) UserLookupByUsername(ctx context.Context, username string) (*UserLookupByUsernameResponse, error)
- type PaginationMeta
- type Parameters
- type PartialError
- type TweetRetweetedByResponse
- type User
- type UserFriendshipResponse
- type UserLookupByUsernameResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64Value ¶
func StringValue ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) TweetRetweetedByUsers ¶ added in v0.3.0
https://developer.twitter.com/en/docs/twitter-api/tweets/retweets/quick-start/retweets-lookup
func (*Client) UserFriendshipShow ¶ added in v0.3.0
func (*Client) UserLookupByUsername ¶
type PaginationMeta ¶ added in v0.3.0
type Parameters ¶
type PartialError ¶
type PartialError struct { ResourceType *string `json:"resource_type"` Field *string `json:"field"` Parameter *string `json:"parameter"` ResourceId *string `json:"resource_id"` Title *string `json:"title"` Section *string `json:"section"` Detail *string `json:"detail"` Value *string `json:"value"` Type *string `json:"type"` }
type TweetRetweetedByResponse ¶ added in v0.3.0
type TweetRetweetedByResponse struct { Data []User `json:"data"` Meta PaginationMeta `json:"meta,omitempty"` Errors []PartialError `json:"errors,omitempty"` }
type UserFriendshipResponse ¶ added in v0.3.0
type UserFriendshipResponse struct { Relationship struct { Source struct { ID string `json:"id_str"` Username string `json:"screen_name"` Following bool `json:"following"` FollowedBy bool `json:"followed_by"` } `json:"source"` Target struct { ID string `json:"id_str"` Username string `json:"screen_name"` Following bool `json:"following"` FollowedBy bool `json:"followed_by"` } `json:"target"` } `json:"relationship"` }
type UserLookupByUsernameResponse ¶ added in v0.3.0
type UserLookupByUsernameResponse struct { Data User `json:"data"` Errors []PartialError `json:"errors"` }
Click to show internal directories.
Click to hide internal directories.