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

Safe HaskellNone

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_fileSource

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