| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Prosper.Internal.JSON
- 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
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
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 |
Arguments
| :: User | |
| -> Int | The listing id |
| -> Money | Amount |
| -> IO InvestResponse | JSON response from Prosper |