4IQVQL4TS35GL2GYZJG254TKJLL5EHMRSFT77Z4VTRZIG2TMBM3QC
W35DDBFYF6Z4ZPCFEO5RPAONZLYCSNTXUSTS6FIUUVZHCI6Q7GHAC
5W5M56VJFJEBXMGBVKGCKPHOEMVTKUOQMLPJP7VNDQLTYNJXXLHQC
OBFPJS2GHO2PEHBHGEHKIUOUAFIQHPIZXEVD2YIE3ZIE2PVMH5VAC
64C6AWH66FDKU6UE6Z6JPX2J2GBM2JOPTH2GL6LHKAIUBGNGDZ5AC
TCOAKCGGHOIRJCTZYEZQ3K6KCGL2LGAYGYFRGSPCHBTJJY2V6AXAC
WO2MINIF4TXOHWSE7JWXRZYN64XRVLYIRFMF4SMPSOXKA2V77KMQC
{-# LANGUAGE ScopedTypeVariables, OverloadedStrings, NoImplicitPrelude #-}
module Quixotic.Client where
import ClassyPrelude
import Control.Lens
import Network.Wreq
import Quixotic.Json
import Quixotic.TimeLog
data QCConfig = QCConfig
{ quixoticHost :: String
, quixoticPort :: Int
}
currentPayouts :: QCConfig -> IO Payouts
currentPayouts cfg = do
resp <- get (quixoticHost cfg <> "/payouts")
payoutsResponse <- asJSON resp
pure . runPayoutsResponse $ payoutsResponse ^. responseBody
Description: A service to enable groups of trusted contributors to be paid for their efforts
in collaboratively developing commercial applications.
Description: A time logging and payment distribution service to enable groups of trusted contributors
to collaboratively develop commercial applications.