Safe Haskell | None |
---|---|
Language | Haskell98 |
This module contains definitions of VK various API bindings. I tried to
keep it as simple as possible. More, the user is expected to copy any
function from this module into their runhaskell
script and customize
as required.
Runhaskell script may look like the following: @ #!usrbin/env runhaskell {--} {--}
- max_count :: Integer
- ver :: Text
- apiSimple :: (MonadAPI m x s, FromJSON b) => MethodName -> [(String, Text)] -> m (R m x) b
- apiVer :: (MonadAPI m x s, FromJSON a) => String -> [(String, Text)] -> API m x a
- groupSearch :: MonadAPI m x s => Text -> API m x (Sized [GroupRecord])
- getCountries :: MonadAPI m x s => API m x (Sized [Country])
- getCities :: MonadAPI m x s => Country -> Maybe Text -> API m x (Sized [City])
- getGroupWall :: MonadAPI m x s => GroupRecord -> API m x (Sized [WallRecord])
- getAlbums :: MonadAPI m x s => Maybe Integer -> API m x (Sized [Album])
- getPhotoUploadServer :: MonadAPI m x s => Album -> API m x PhotoUploadServer
- getCurrentUser :: MonadAPI m x s => API m x UserRecord
- setUserPhoto :: MonadAPI m x s => UserRecord -> FilePath -> API m x ()
Documentation
groupSearch :: MonadAPI m x s => Text -> API m x (Sized [GroupRecord]) Source #
getGroupWall :: MonadAPI m x s => GroupRecord -> API m x (Sized [WallRecord]) Source #
getPhotoUploadServer :: MonadAPI m x s => Album -> API m x PhotoUploadServer Source #
getCurrentUser :: MonadAPI m x s => API m x UserRecord Source #
FIXME fix setUserPhoto, it is not actually working
FIXME move low-level upload code to API.Base
setUserPhoto :: MonadAPI m x s => UserRecord -> FilePath -> API m x () Source #