Module

MeowClient.ForumTopic

Package
purescript-meowclient
Repository
userfriendanonymous/purescript-meowclient

#Info Source

type Info = Value

#Pointer Source

type Pointer = { id :: Int, session :: Value }

Forum topic pointer.

Example

do
   let forumTopic = { id : 305901553, session }
   result <- info forumTopic

#follow Source

follow :: Pointer -> Aff (Either Value Unit)

Follows a forum topic.

follow [forum topic]

Example

do
   result <- follow forumTopic
   case result of
       Left error -> -- ...
       Right _ -> -- ...

#info Source

info :: Pointer -> Aff (Either Value Value)

Gets information about a forum topic.

info [forum topic]

Example

do
   result <- info forumTopic
   case result of
       Left error -> -- ...
       Right info' -> -- ...

#posts Source

posts :: Int -> Pointer -> Aff (Either Error (Array (Tuple Int Value)))

Gets posts of a forum topic.

posts [page] [forum topic]

Example

do
   result <- posts 2 forumTopic
   case result of
       Left error -> -- ...
       Right posts' -> -- ...

#reply Source

reply :: String -> Pointer -> Aff (Either Value Unit)

Leaves a reply on a forum topic.

reply [content] [forum topic]

Example

do
   result <- reply "Hello everyone" forumTopic
   case result of
       Left error -> -- ...
       Right _ -> -- ...

#unfollow Source

unfollow :: Pointer -> Aff (Either Value Unit)

Unfollows a forum topic.

unfollow [forum topic]

Example

do
   result <- unfollow forumTopic
   case result of
       Left error -> -- ...
       Right _ -> -- ...