VKHS-0.5.7: Provides access to Vkontakte social network via public API

Safe HaskellNone
LanguageHaskell98

Web.VKHS.Curl

Synopsis

Documentation

vk_curl :: Env a -> Writer [CURLoption] () -> IO (Either String ByteString) Source

Generic request sender. Returns whole HTTP answer as a ByteString

vk_curl_file Source

Arguments

:: Env a

User environment

-> String

URL

-> (ByteString -> IO ())

File write handler

-> IO (Either String ()) 

Downloads the file and saves it on disk

vk_curl_payload :: Env a -> Writer [CURLoption] () -> IO (Either String ByteString) Source

Return HTTP payload, ignore headers