| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Web.Twitter.Types
- type UserId = Integer
- type Friends = [UserId]
- type URIString = Text
- type UserName = Text
- type StatusId = Integer
- type LanguageCode = String
- data StreamingAPI
- data Status = Status {
- statusContributors :: Maybe [Contributor]
- statusCoordinates :: Maybe Coordinates
- statusCreatedAt :: UTCTime
- statusCurrentUserRetweet :: Maybe StatusId
- statusEntities :: Maybe Entities
- statusExtendedEntities :: Maybe Entities
- statusFavoriteCount :: Integer
- statusFavorited :: Maybe Bool
- statusFilterLevel :: Maybe Text
- statusId :: StatusId
- statusInReplyToScreenName :: Maybe Text
- statusInReplyToStatusId :: Maybe StatusId
- statusInReplyToUserId :: Maybe UserId
- statusLang :: Maybe LanguageCode
- statusPlace :: Maybe Place
- statusPossiblySensitive :: Maybe Bool
- statusScopes :: Maybe Object
- statusQuotedStatusId :: Maybe StatusId
- statusQuotedStatus :: Maybe Status
- statusRetweetCount :: Integer
- statusRetweeted :: Maybe Bool
- statusRetweetedStatus :: Maybe Status
- statusSource :: Text
- statusText :: Text
- statusTruncated :: Bool
- statusUser :: User
- statusWithheldCopyright :: Maybe Bool
- statusWithheldInCountries :: Maybe [Text]
- statusWithheldScope :: Maybe Text
- data SearchResult body = SearchResult {}
- data SearchStatus = SearchStatus {}
- data SearchMetadata = SearchMetadata {
- searchMetadataMaxId :: StatusId
- searchMetadataSinceId :: StatusId
- searchMetadataRefreshURL :: URIString
- searchMetadataNextResults :: Maybe URIString
- searchMetadataCount :: Int
- searchMetadataCompletedIn :: Maybe Float
- searchMetadataSinceIdStr :: String
- searchMetadataQuery :: String
- searchMetadataMaxIdStr :: String
- data RetweetedStatus = RetweetedStatus {
- rsCreatedAt :: UTCTime
- rsId :: StatusId
- rsText :: Text
- rsSource :: Text
- rsTruncated :: Bool
- rsEntities :: Maybe Entities
- rsUser :: User
- rsRetweetedStatus :: Status
- rsCoordinates :: Maybe Coordinates
- data DirectMessage = DirectMessage {}
- data EventTarget
- data Event = Event {}
- data Delete = Delete {}
- data User = User {
- userContributorsEnabled :: Bool
- userCreatedAt :: UTCTime
- userDefaultProfile :: Bool
- userDefaultProfileImage :: Bool
- userDescription :: Maybe Text
- userFavoritesCount :: Int
- userFollowRequestSent :: Maybe Bool
- userFollowing :: Maybe Bool
- userFollowersCount :: Int
- userFriendsCount :: Int
- userGeoEnabled :: Bool
- userId :: UserId
- userIsTranslator :: Bool
- userLang :: LanguageCode
- userListedCount :: Int
- userLocation :: Maybe Text
- userName :: Text
- userNotifications :: Maybe Bool
- userProfileBackgroundColor :: Maybe Text
- userProfileBackgroundImageURL :: Maybe URIString
- userProfileBackgroundImageURLHttps :: Maybe URIString
- userProfileBackgroundTile :: Maybe Bool
- userProfileBannerURL :: Maybe URIString
- userProfileImageURL :: Maybe URIString
- userProfileImageURLHttps :: Maybe URIString
- userProfileLinkColor :: Text
- userProfileSidebarBorderColor :: Text
- userProfileSidebarFillColor :: Text
- userProfileTextColor :: Text
- userProfileUseBackgroundImage :: Bool
- userProtected :: Bool
- userScreenName :: Text
- userShowAllInlineMedia :: Maybe Bool
- userStatusesCount :: Int
- userTimeZone :: Maybe Text
- userURL :: Maybe URIString
- userUtcOffset :: Maybe Int
- userVerified :: Bool
- userWithheldInCountries :: Maybe [Text]
- userWithheldScope :: Maybe Text
- data List = List {
- listId :: Int
- listName :: Text
- listFullName :: Text
- listMemberCount :: Int
- listSubscriberCount :: Int
- listMode :: Text
- listUser :: User
- data Entities = Entities {
- enHashTags :: [Entity HashTagEntity]
- enUserMentions :: [Entity UserEntity]
- enURLs :: [Entity URLEntity]
- enMedia :: [Entity MediaEntity]
- type EntityIndices = [Int]
- data Entity a = Entity {
- entityBody :: a
- entityIndices :: EntityIndices
- data HashTagEntity = HashTagEntity {
- hashTagText :: Text
- data UserEntity = UserEntity {}
- data URLEntity = URLEntity {}
- data MediaEntity = MediaEntity {}
- data MediaSize = MediaSize {}
- data Coordinates = Coordinates {
- coordinates :: [Double]
- coordinatesType :: Text
- data Place = Place {}
- data BoundingBox = BoundingBox {
- boundingBoxCoordinates :: [[[Double]]]
- boundingBoxType :: Text
- data Contributor = Contributor {}
- data UploadedMedia = UploadedMedia {}
- data ImageSizeType = ImageSizeType {}
- checkError :: Object -> Parser ()
- twitterTimeFormat :: String
Documentation
type LanguageCode = String Source
data StreamingAPI Source
Constructors
| SStatus Status | |
| SRetweetedStatus RetweetedStatus | |
| SEvent Event | |
| SDelete Delete | |
| SFriends Friends | SScrubGeo ScrubGeo |
| SDirectMessage DirectMessage | |
| SUnknown Value |
Instances
| Eq StreamingAPI Source | |
| Data StreamingAPI Source | |
| Show StreamingAPI Source | |
| Generic StreamingAPI Source | |
| ToJSON StreamingAPI Source | |
| FromJSON StreamingAPI Source | |
| type Rep StreamingAPI Source |
This type represents a Twitter tweet structure. See https://dev.twitter.com/docs/platform-objects/tweets.
Constructors
data SearchResult body Source
Constructors
| SearchResult | |
Fields | |
Instances
| Eq body => Eq (SearchResult body) Source | |
| Data body => Data (SearchResult body) Source | |
| Show body => Show (SearchResult body) Source | |
| Generic (SearchResult body) Source | |
| ToJSON body => ToJSON (SearchResult body) Source | |
| FromJSON body => FromJSON (SearchResult body) Source | |
| type Rep (SearchResult body) Source |
data SearchStatus Source
Constructors
| SearchStatus | |
Instances
| Eq SearchStatus Source | |
| Data SearchStatus Source | |
| Show SearchStatus Source | |
| Generic SearchStatus Source | |
| ToJSON SearchStatus Source | |
| FromJSON SearchStatus Source | |
| type Rep SearchStatus Source |
data SearchMetadata Source
Constructors
Instances
data RetweetedStatus Source
Constructors
| RetweetedStatus | |
Fields
| |
Instances
data DirectMessage Source
Constructors
| DirectMessage | |
Fields
| |
Instances
| Eq DirectMessage Source | |
| Data DirectMessage Source | |
| Show DirectMessage Source | |
| Generic DirectMessage Source | |
| ToJSON DirectMessage Source | |
| FromJSON DirectMessage Source | |
| type Rep DirectMessage Source |
data EventTarget Source
Instances
| Eq EventTarget Source | |
| Data EventTarget Source | |
| Show EventTarget Source | |
| Generic EventTarget Source | |
| ToJSON EventTarget Source | |
| FromJSON EventTarget Source | |
| type Rep EventTarget Source |
Constructors
| Event | |
Fields
| |
This type represents the Twitter user. See https://dev.twitter.com/docs/platform-objects/users.
Constructors
Constructors
| List | |
Fields
| |
Entity handling. See https://dev.twitter.com/docs/platform-objects/entities.
Constructors
| Entities | |
Fields
| |
type EntityIndices = [Int] Source
The character positions the Entity was extracted from
This is experimental implementation. This may be replaced by more definite types.
Constructors
| Entity | |
Fields
| |
data HashTagEntity Source
Hashtag entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-hashtags.
Constructors
| HashTagEntity | |
Fields
| |
Instances
| Eq HashTagEntity Source | |
| Data HashTagEntity Source | |
| Show HashTagEntity Source | |
| Generic HashTagEntity Source | |
| ToJSON HashTagEntity Source | |
| FromJSON HashTagEntity Source | |
| type Rep HashTagEntity Source |
data UserEntity Source
User mention entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-usermention.
Constructors
| UserEntity | |
Fields | |
Instances
| Eq UserEntity Source | |
| Data UserEntity Source | |
| Show UserEntity Source | |
| Generic UserEntity Source | |
| ToJSON UserEntity Source | |
| FromJSON UserEntity Source | |
| type Rep UserEntity Source |
URL entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-url.
Constructors
| URLEntity | |
data MediaEntity Source
Constructors
| MediaEntity | |
Instances
| Eq MediaEntity Source | |
| Data MediaEntity Source | |
| Show MediaEntity Source | |
| Generic MediaEntity Source | |
| ToJSON MediaEntity Source | |
| FromJSON MediaEntity Source | |
| type Rep MediaEntity Source |
Size entity. See https://dev.twitter.com/docs/platform-objects/entities#obj-size.
data Coordinates Source
Constructors
| Coordinates | |
Fields
| |
Instances
| Eq Coordinates Source | |
| Data Coordinates Source | |
| Show Coordinates Source | |
| Generic Coordinates Source | |
| ToJSON Coordinates Source | |
| FromJSON Coordinates Source | |
| type Rep Coordinates Source |
This type represents a place, named locations with corresponding geo coordinates. See https://dev.twitter.com/docs/platform-objects/places.
Constructors
| Place | |
Fields
| |
data BoundingBox Source
A bounding box of coordinates which encloses the place. See https://dev.twitter.com/docs/platform-objects/places#obj-boundingbox.
Constructors
| BoundingBox | |
Fields
| |
Instances
| Eq BoundingBox Source | |
| Data BoundingBox Source | |
| Show BoundingBox Source | |
| Generic BoundingBox Source | |
| ToJSON BoundingBox Source | |
| FromJSON BoundingBox Source | |
| type Rep BoundingBox Source |
data Contributor Source
Constructors
| Contributor | |
Fields | |
Instances
| Eq Contributor Source | |
| Data Contributor Source | |
| Show Contributor Source | |
| Generic Contributor Source | |
| ToJSON Contributor Source | |
| FromJSON Contributor Source | |
| type Rep Contributor Source |
data UploadedMedia Source
This type is represents the API response of "/1.1/media/upload.json". See https://dev.twitter.com/docs/api/multiple-media-extended-entities.
Constructors
| UploadedMedia | |
Fields | |
Instances
| Eq UploadedMedia Source | |
| Data UploadedMedia Source | |
| Show UploadedMedia Source | |
| Generic UploadedMedia Source | |
| ToJSON UploadedMedia Source | |
| FromJSON UploadedMedia Source | |
| type Rep UploadedMedia Source |
data ImageSizeType Source
Image size type. This type is included in the API response of "/1.1/media/upload.json".
Constructors
| ImageSizeType | |
Fields | |
Instances
| Eq ImageSizeType Source | |
| Data ImageSizeType Source | |
| Show ImageSizeType Source | |
| Generic ImageSizeType Source | |
| ToJSON ImageSizeType Source | |
| FromJSON ImageSizeType Source | |
| type Rep ImageSizeType Source |
checkError :: Object -> Parser () Source