hsebaysdk-0.4.0.0: Haskell eBay SDK

Copyright(c) Christopher Reichert 2014
LicenseAllRightsReserved
MaintainerChristopher Reichert <creichert@reichertbrothers.com>
Stabilityexperimental
PortabilityGNU/Linux, FreeBSD
Safe HaskellNone
LanguageHaskell2010

Web.Ebay

Contents

Description

Haskell SDK for Ebay Finding API

Synopsis

Functions

searchWithVerb #

Arguments

:: 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

defaultEbayConfig :: EbayConfig #

Default Ebay configuration for working with the finding API in a sandbox.

Ebay API types.

data Search #

Generic search query for ebay api.

Instances
Show Search # 
Instance details

Defined in Web.Ebay

ToJSON Search # 
Instance details

Defined in Web.Ebay

data SearchRequest #

Ebay Finding API search request.

Constructors

SearchRequest 

Fields

data SearchResponse #

Represents a Response from the eBay finding api

TODO: Search responses technically have a list of SearchResult

data SearchResult #

Instances
Show SearchResult # 
Instance details

Defined in Web.Ebay

FromJSON SearchResult # 
Instance details

Defined in Web.Ebay

data SearchItem #

A single ebay listing item

Note that some fields have not yet been implemented from the ebay api documentation.

Instances
Show SearchItem # 
Instance details

Defined in Web.Ebay

FromJSON SearchItem # 
Instance details

Defined in Web.Ebay

data SortOrder #

Instances
Show SortOrder # 
Instance details

Defined in Web.Ebay

Generic SortOrder # 
Instance details

Defined in Web.Ebay

Associated Types

type Rep SortOrder :: Type -> Type #

ToJSON SortOrder # 
Instance details

Defined in Web.Ebay

type Rep SortOrder # 
Instance details

Defined in Web.Ebay

type Rep SortOrder = D1 (MetaData "SortOrder" "Web.Ebay" "hsebaysdk-0.4.0.0-HMKDmjJj47zJ45hUalHf0F" False) (((C1 (MetaCons "EndTimeSoonest" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "BestMatch" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "BidCountFewest" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "BidCountMost" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CountryAscending" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "CountryDescending" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "CurrentPriceHighest" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "DistanceNearest" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "PricePlusShipingHighest" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "PricePlusShippingLowest" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "StartTimeNewest" PrefixI False) (U1 :: Type -> Type)))))

data EbayConfig #

Ebay api configuration.

Constructors

EbayConfig 

Fields

Instances
Show EbayConfig # 
Instance details

Defined in Web.Ebay

data SellingState #

Instances
Eq SellingState # 
Instance details

Defined in Web.Ebay

Show SellingState # 
Instance details

Defined in Web.Ebay

Generic SellingState # 
Instance details

Defined in Web.Ebay

Associated Types

type Rep SellingState :: Type -> Type #

FromJSON SellingState # 
Instance details

Defined in Web.Ebay

type Rep SellingState # 
Instance details

Defined in Web.Ebay

type Rep SellingState = D1 (MetaData "SellingState" "Web.Ebay" "hsebaysdk-0.4.0.0-HMKDmjJj47zJ45hUalHf0F" False) ((C1 (MetaCons "Active" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Canceled" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Ended" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "EndedWithSales" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "EndedWithoutSales" PrefixI False) (U1 :: Type -> Type))))

newtype ItemFilter #

Constructors

ItemFilter (Text, Text) 
Instances
Show ItemFilter # 
Instance details

Defined in Web.Ebay

ToJSON ItemFilter # 
Instance details

Defined in Web.Ebay

data Condition #

Condition is made up of condition id condition display name

Constructors

Condition Text Text 
Instances
Show Condition # 
Instance details

Defined in Web.Ebay

FromJSON Condition # 
Instance details

Defined in Web.Ebay

data OutputSelector #

Instances
Read OutputSelector # 
Instance details

Defined in Web.Ebay

Show OutputSelector # 
Instance details

Defined in Web.Ebay

Generic OutputSelector # 
Instance details

Defined in Web.Ebay

Associated Types

type Rep OutputSelector :: Type -> Type #

ToJSON OutputSelector # 
Instance details

Defined in Web.Ebay

FromJSON OutputSelector # 
Instance details

Defined in Web.Ebay

type Rep OutputSelector # 
Instance details

Defined in Web.Ebay

type Rep OutputSelector = D1 (MetaData "OutputSelector" "Web.Ebay" "hsebaysdk-0.4.0.0-HMKDmjJj47zJ45hUalHf0F" False) (((C1 (MetaCons "AspectHistogram" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "CategoryHistogram" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "ConditionHistogram" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GalleryInfoOutput" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "PictureURLLarge" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "PictureURLSuperSize" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "SellerInfo" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "StoreInfo" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "UnitPriceInfo" PrefixI False) (U1 :: Type -> Type)))))

data ProductId #

Instances
Show ProductId # 
Instance details

Defined in Web.Ebay

ToJSON ProductId # 
Instance details

Defined in Web.Ebay

data GalleryInfo #

Constructors

GalleryInfo 

Fields

Instances
Show GalleryInfo # 
Instance details

Defined in Web.Ebay

data AffiliateInfo #

Constructors

AffiliateInfo 

Fields

  • networkId :: !Int

    The networkId specifies the third party who is your tracking partner. When specifying affiliate details, this field is required. Not all partners are valid for all sites.

  • trackingId :: !Int

    The trackingId specifies an ID to identify you to your tracking partner. The value you specify is obtained from your tracking partner. For eBay Partner Network, the trackingId is the Campaign ID ("campid") provided by eBay Partner Network. A Campaign ID is a 10-digit, unique number to be used for associating traffic. A Campaign ID is valid across all programs to which you have been accepted.

  • customId :: !(Maybe Int)

    The customId need not be specified. You can define a customId (up to 256 characters) if you want to leverage it to better monitor your marketing efforts. If you are using the eBay Partner Network, and you provide a customId, it will be contained in the tracking URL returned by eBay Partner Network.