-- | Types and functions for dealing with the API client itself. module Scurry.Client ( Client (..) , newClient ) where import Network.HTTP.Client.Conduit (Manager, newManager) -- | Strava V3 API Client. data Client = Client { accessToken :: String , httpManager :: Manager } -- | Create a new client using the default HTTP manager. newClient :: String -> IO Client newClient token = do manager <- newManager return Client { accessToken = token , httpManager = manager }