Safe Haskell | None |
---|---|
Language | Haskell2010 |
- jsonGet :: FromJSON a => User -> ByteString -> IO a
- jsonGetHandler :: FromJSON a => User -> ByteString -> (Response -> InputStream ByteString -> IO a) -> IO a
- investRequest :: User -> Int -> Money -> IO InvestResponse
Documentation
:: 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
:: 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 |
:: User | |
-> Int | The listing id |
-> Money | Amount |
-> IO InvestResponse | JSON response from Prosper |