prosper-0.1.1: Bindings to the Prosper marketplace API

Safe HaskellNone
LanguageHaskell2010

Prosper.Internal.JSON

Synopsis

Documentation

jsonGet Source

Arguments

:: FromJSON a 
=> User

The user name and password for the prosper user

-> ByteString

The name of the API service, relative to the API url

-> IO a

JSON response

Make a GET request to Prosper's JSON api, return the parsed JSON data

jsonGetHandler Source

Arguments

:: FromJSON a 
=> User

The user name and password for the prosper user

-> ByteString

The name of the API service, relative to the API url

-> (Response -> InputStream ByteString -> IO a) 
-> IO a

JSON response

investRequest Source

Arguments

:: User 
-> Int

The listing id

-> Money

Amount

-> IO InvestResponse

JSON response from Prosper