×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Tribus
  • /
  • Module Team Pobre
  • /
  • Atelier801API - Info
  • /
  • API's documentation
  • Anglais
  • Espagnol
API's documentationDocumentación de la API
Tocutoeltuco
« Censeur »
Membre
1519077480000
    • Tocutoeltuco#0000
    • Profil
    • Derniers messages
#1
  1
  • main
  • Functions
  • Events
  • Exceptions
  • Datas

http://img.atelier801.com/42a4f361.png



Welcome to the A801API's documentation!
  • Forum ( headless = False , silent = True )
     Base class to the API functions.
     Pararameters:
      - headless (Boolean) : if you want the browser headless or not, if true may cause some bugs
      - silent (Boolean) : if you want the browser output or not

     
  • Forum.login ( username , password )
      Login function.
      Pararameters:
       - username (String) : the username of the account that you will log in
       - password (String) : the password of the account that you will log in

     
  • Forum.createPost ( forumID , sectionID , title , message , clear = False )
      Creates a post.
      Pararameters:
       - forumID (Int) : The forum ID where you will create your post
       - sectionID (Int) : The section ID where you will create your post
       - title (String) : The title of your post
       - message (String) : The message of your post
       - clear (Boolean) : If you want to clear the inputs after writing, if there is any cache text

     
  • Forum.getPostInfo ( forumID , postID , changePage = True )
      Get a post info.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - changePage (Boolean) : If you want to change the page

     
  • Forum.getPostHistoryLog ( forumID , postID , changePage , limit = None )
      Get the history log of a post.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - changePage (Boolean) : If you want to change the page
       - limit (Int/None) : The history log limit

     
  • Forum.changePostTitle ( forumID , postID , title )
      Change a post title.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - title (String) : The new title

     
  • Forum.fixPost ( forumID , postID )
      Fix a post.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post

     
  • Forum.changePostState ( forumID , postID , state = 0 )
      Change a post state (opened, closed, deleted).
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - state (Int) : The state of the post. 0: opened, 1: closed, 2: deleted

     
  • Forum.editPost ( )
      Alias to Forum.editComment(forumID, postID, 1, message).

     
  • Forum.moderatePost ( )
      Alias to Forum.moderateComment(forumID, postID, 1, reason).

     
  • Forum.quotePost ( )
      Alias to Forum.quoteComment(forumID, postID, 1).

     
  • Forum.reportPost ( )
      Alias to Forum.reportComment(forumID, postID, 1, reason).

     
  • Forum.comment ( forumID , postID , message , clear = False )
      Leave a comment on a post.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - message (String) : The comment's message
       - clear (Boolean) : If you want to clear the inputs after writing, if there is any cache text

     
  • Forum.getCommentInfo ( forumID , postID , commentID , changePage = True , retCommentContent = False )
      Get a comment info.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - commentID (Int) : The comment ID of the comment
       - changePage (Boolean) : If you want to change the page
       - retCommentContent (Boolean) : If you want to get the comment content

     
  • Forum.getCommentHistoryLog ( forumID , postID , commentID , changePage = True , limit = None )
      Get the history log of a comment.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - commentID (Int) : The comment ID of the comment
       - changePage (Boolean) : If you want to change the page
       - limit (Int/None) : The history log limit

     
  • Forum.likeComment ( forumID , postID , commentID , changePage = True )
      Like a comment.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - commentID (Int) : The comment ID of the comment
       - changePage (Boolean) : If you want to change the page

     
  • Forum.editComment ( forumID , postID , commentID , message , changePage = True )
      Edit a comment.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - commentID (Int) : The comment ID of the comment
       - message (String) : The new message
       - changePage (Boolean) : If you want to change the page

     
  • Forum.moderateComment ( forumID , postID , commentID , reason , changePage = True )
      Moderate a comment.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - commentID (Int) : The comment ID of the comment
       - reason (String) : The reason
       - changePage = True (Boolean) : If you want to change the page

     
  • Forum.quoteComment ( forumID , postID , commentID , changePage = True )
      Quote a comment.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - commentID (Int) : The comment ID of the comment
       - changePage = True (Boolean) : If you want to change the page

     
  • Forum.reportComment ( forumID , postID , commentID , reason , changePage = True )
      Report a comment.
      Pararameters:
       - forumID (Int) : The forum ID of the post
       - postID (Int) : The post ID of the post
       - commentID (Int) : The comment ID of the comment
       - reason (String) : The reason
       - changePage = True (Boolean) : If you want to change the page

     
  • Forum.disconnect ( )
      Disconnect the bot.

Work in progress!
  • LikedCommentError
     Raised when a comment is already liked
  • IDNotValidError
     Raised when an ID is not valid (example, is not used)
  • PermissionNeeded
     Raised when your PrivLevel is lower than the needed
  • WorkInProgress
     Raised when you try to call a method and its not finished on this version
  • PrivLevel
     Permissions informator.
  • PrivLevel.quote (Boolean) If you can quote the comment
  • PrivLevel.edit (Boolean) If you can edit the comment
  • PrivLevel.report (Boolean) If you can report the comment
  • PrivLevel.moderate (Boolean) If you can moderate the comment
  • PrivLevel.postAdmin (Boolean) If you can change the post state, or the title

  • CommentData
     Comments informator.
  • CommentData.author (String)
  • CommentData.id (Int)
  • CommentData.relativeID (Int)
  • CommentData.forumID (Int)
  • CommentData.postID (Int)
  • CommentData.page (Int)
  • CommentData.text (String)
  • CommentData.htmlText (String)
  • CommentData.date (String)
  • CommentData.likes (Int)
  • CommentData.liked (Boolean)
  • CommentData.edited (Boolean)
  • CommentData.editedBy (String)
  • CommentData.editedAt (String)
  • CommentData.isModerated (Boolean)
  • CommentData.moderatedBy (String)
  • CommentData.moderatedReason (String)
  • CommentData.myPrivLevel (PrivLevel/None)

  • PostData
     Posts informator.
  • PostData.author (String)
  • PostData.id (Int)
  • PostData.forumID (Int)
  • PostData.title (String)
  • PostData.date (String)
  • PostData.text (String)
  • PostData.htmlText (String)
  • PostData.likes (Int)
  • PostData.liked (Boolean)
  • PostData.fixed (Boolean)
  • PostData.state (Int)
  • PostData.edited (Boolean)
  • PostData.editedBy (String)
  • PostData.editedAt (String)
  • PostData.isModerated (Boolean)
  • PostData.moderatedBy (String)
  • PostData.moderatedReason (String)
  • PostData.myPrivLevel (PrivLevel/None)


Dernière modification le 1519090080000
  • Tribus
  • /
  • Module Team Pobre
  • /
  • Atelier801API - Info
  • /
  • API's documentation
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27