Module

MeowClient.ForumPost

Package
purescript-meowclient
Repository
userfriendanonymous/purescript-meowclient

#Info Source

type Info = Value

#Pointer Source

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

Forum post pointer.

Example

do
   let forumPost = { id : 415011012, session }
   result <- info forumPost

#edit Source

edit :: String -> Pointer -> Aff (Either Error Unit)

Edits a forum post.

edit [new content] [forum post]

Example

do
   result <- edit "Edited!" forumPost
   case result of
       Left error -> -- ...
       Right _ -> -- ...

#info Source

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

Gets information about a forum post.

info [forum post]

Example

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

#source Source

source :: Pointer -> Aff (Either Error String)

Gets source of a forum post.

source [forum post]

Example

do
   result <- source forumPost
   case result of
       Left error -> -- ...
       Right source' -> -- ...