Copyright | (c) Christopher Reichert 2014 |
---|---|
License | AllRightsReserved |
Maintainer | Christopher Reichert <creichert@reichertbrothers.com> |
Stability | experimental |
Portability | GNU/Linux, FreeBSD |
Safe Haskell | None |
Language | Haskell2010 |
Haskell SDK for Ebay Finding API
- searchWithVerb :: MonadIO m => EbayConfig -> FindVerb -> Search -> Manager -> m (Maybe SearchResponse)
- simpleSearchWithVerb :: EbayConfig -> SearchRequest -> IO (Maybe SearchResponse)
- defaultEbayConfig :: EbayConfig
- data Search = Search {}
- data SearchRequest = SearchRequest {}
- data SearchResponse = SearchResponse FindVerb SearchResult
- data SearchResult = SearchResult {}
- data SearchItem = SearchItem {
- searchItemId :: !Text
- searchItemTitle :: !Text
- searchItemSubtitle :: !(Maybe Text)
- searchItemTopRatedListing :: !Bool
- searchItemViewItemUrl :: !Text
- searchItemGalleryUrl :: !(Maybe Text)
- searchItemGalleryPlusPictureUrl :: !(Maybe Text)
- searchItemPictureLargeUrl :: !(Maybe Text)
- searchItemCondition :: Condition
- searchItemSellingStatus :: SellingStatus
- searchItemListingInfo :: Maybe ListingInfo
- data SellingStatus = SellingStatus {}
- data SortOrder
- data FindVerb
- data EbayConfig = EbayConfig {}
- data SellingState
- newtype ItemFilter = ItemFilter (Text, Text)
- data Condition = Condition Text Text
- data ListingInfo = ListingInfo {
- listingInfoBestOfferEnabled :: !Bool
- listingInfoBuyItNowAvailable :: !Bool
- listingInfoBuyItNowPrice :: !(Maybe Text)
- listingInfoConvertedBuyItNowPrice :: !(Maybe Text)
- listingInfoEndTime :: !UTCTime
- listingInfoGift :: !Bool
- listingInfoType :: ListingType
- listingInfoStartTime :: !UTCTime
- data OutputSelector
- data ProductId
- data GalleryInfo = GalleryInfo {
- galleryInfoUrls :: ![Text]
- data AffiliateInfo = AffiliateInfo {}
Functions
:: MonadIO m | |
=> EbayConfig | api configuration |
-> FindVerb | action to run |
-> Search | search request |
-> Manager | http connection manager |
-> m (Maybe SearchResponse) |
Runs an eBay Finding API search
simpleSearchWithVerb :: EbayConfig -> SearchRequest -> IO (Maybe SearchResponse) Source #
defaultEbayConfig :: EbayConfig Source #
Default Ebay configuration for working with the finding API in a sandbox.
Ebay API types.
Generic search query for ebay api.
data SearchResponse Source #
Represents a Response from the eBay finding api
TODO: Search responses technically have a list of SearchResult
data SearchResult Source #
data SearchItem Source #
A single ebay listing item
Note that some fields have not yet been implemented from the ebay api documentation.
Support verbs in finding api
verb
jargon taken from eBay docs.
data EbayConfig Source #
Ebay api configuration.
EbayConfig | |
|
data SellingState Source #
newtype ItemFilter Source #
ItemFilter (Text, Text) |
Condition is made up of condition id condition display name
data ListingInfo Source #
ListingInfo | |
|
data OutputSelector Source #
data AffiliateInfo Source #
AffiliateInfo | |
|