Safe Haskell | None |
---|---|
Language | Haskell98 |
- data AccessToken = AccessToken {}
- data AccessRight
- toUrlArg :: [AccessRight] -> String
- allAccess :: [AccessRight]
- newtype AppID = AppID {
- aid_string :: String
- data JSON = JSON {}
- parseJSON :: FromJSON a => JSON -> Either String a
- data Form = Form {
- form_title :: String
- form :: Form
- data FilledForm = FilledForm {
- fform_title :: String
- fform :: Form
- data GenericOptions = GenericOptions {}
- defaultOptions :: GenericOptions
- class ToGenericOptions s where
- data Verbosity
- debug :: (ToGenericOptions s, MonadState s m, MonadIO m) => Text -> m ()
- alert :: (ToGenericOptions s, MonadState s m, MonadIO m) => Text -> m ()
- data MusicOptions = MusicOptions {}
- data UserOptions = UserOptions {}
- data WallOptions = WallOptions {}
- data GroupOptions = GroupOptions {}
- type MethodName = String
- type MethodArgs = [(String, Text)]
Documentation
data AccessToken Source #
AccessToken is a authentication data, required by all VK API functions. It is a tuple of access_token, user_id, expires_in fields, returned by login procedure.
See http://vk.com/developers.php?oid=-1&p=Авторизация_клиентских_приложений (in Russian) for more details
See also modifyAccessToken
and readInitialAccessToken
data AccessRight Source #
Access rigth to request from VK. See API docs http://vk.com/developers.php?oid=-1&p=Права_доступа_приложений (in Russian) for details
toUrlArg :: [AccessRight] -> String Source #
allAccess :: [AccessRight] Source #
JSON wrapper.
- FIXME Implement full set of helper functions
data GenericOptions Source #
Generic parameters of the VK execution. For accessing from VK runtime, use
getGenericOptions
function
GenericOptions | |
|
class ToGenericOptions s where Source #
toGenericOptions :: s -> GenericOptions Source #
debug :: (ToGenericOptions s, MonadState s m, MonadIO m) => Text -> m () Source #
alert :: (ToGenericOptions s, MonadState s m, MonadIO m) => Text -> m () Source #
data MusicOptions Source #
MusicOptions | |
|
data GroupOptions Source #
type MethodName = String Source #
type MethodArgs = [(String, Text)] Source #