| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Web.VKHS.Types
- 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
Constructors
| AccessToken | |
Fields
| |
Instances
data AccessRight Source #
Access rigth to request from VK. See API docs http://vk.com/developers.php?oid=-1&p=Права_доступа_приложений (in Russian) for details
Constructors
| Notify | |
| Friends | |
| Photos | |
| Audio | |
| Video | |
| Docs | |
| Notes | |
| Pages | |
| Status | |
| Offers | |
| Questions | |
| Wall | |
| Groups | |
| Messages | |
| Notifications | |
| Stats | |
| Ads | |
| Offline |
Instances
toUrlArg :: [AccessRight] -> String Source #
allAccess :: [AccessRight] Source #
Constructors
| AppID | |
Fields
| |
Constructors
| Form | |
Fields
| |
data GenericOptions Source #
Generic parameters of the VK execution. For accessing from VK runtime, use
getGenericOptions function
Constructors
| GenericOptions | |
Fields
| |
Instances
class ToGenericOptions s where Source #
Minimal complete definition
Methods
toGenericOptions :: s -> GenericOptions Source #
Instances
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 #
Constructors
| MusicOptions | |
Fields
| |
Instances
type MethodName = String Source #
type MethodArgs = [(String, Text)] Source #