-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #440 from carpedm20/fix-docs
Fix and clean up documentation
- Loading branch information
Showing
19 changed files
with
349 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
version: 2 | ||
|
||
formats: | ||
- htmlzip | ||
|
||
python: | ||
version: 3.6 | ||
install: | ||
- path: . | ||
extra_requirements: | ||
- docs | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
fail_on_warning: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,79 @@ | ||
.. module:: fbchat | ||
.. highlight:: python | ||
.. _api: | ||
|
||
.. Note: we're using () to hide the __init__ method where relevant | ||
Full API | ||
======== | ||
|
||
If you are looking for information on a specific function, class, or method, this part of the documentation is for you. | ||
|
||
|
||
.. _api_client: | ||
|
||
Client | ||
------ | ||
|
||
This is the main class of `fbchat`, which contains all the methods you use to interact with Facebook. | ||
You can extend this class, and overwrite the events, to provide custom event handling (mainly used while listening) | ||
.. autoclass:: Client | ||
|
||
.. autoclass:: Client(email, password, user_agent=None, max_tries=5, session_cookies=None, logging_level=logging.INFO) | ||
:members: | ||
Threads | ||
------- | ||
|
||
.. autoclass:: Thread() | ||
.. autoclass:: ThreadType(Enum) | ||
:undoc-members: | ||
.. autoclass:: Page() | ||
.. autoclass:: User() | ||
.. autoclass:: Group() | ||
|
||
.. _api_models: | ||
Messages | ||
-------- | ||
|
||
Models | ||
------ | ||
.. autoclass:: Message | ||
.. autoclass:: Mention | ||
.. autoclass:: EmojiSize(Enum) | ||
:undoc-members: | ||
.. autoclass:: MessageReaction(Enum) | ||
:undoc-members: | ||
|
||
Exceptions | ||
---------- | ||
|
||
.. autoexception:: FBchatException() | ||
.. autoexception:: FBchatFacebookError() | ||
.. autoexception:: FBchatUserError() | ||
|
||
Attachments | ||
----------- | ||
|
||
.. autoclass:: Attachment() | ||
.. autoclass:: ShareAttachment() | ||
.. autoclass:: Sticker() | ||
.. autoclass:: LocationAttachment() | ||
.. autoclass:: LiveLocationAttachment() | ||
.. autoclass:: FileAttachment() | ||
.. autoclass:: AudioAttachment() | ||
.. autoclass:: ImageAttachment() | ||
.. autoclass:: VideoAttachment() | ||
.. autoclass:: ImageAttachment() | ||
|
||
Miscellaneous | ||
------------- | ||
|
||
.. autoclass:: ThreadLocation(Enum) | ||
:undoc-members: | ||
.. autoclass:: ThreadColor(Enum) | ||
:undoc-members: | ||
.. autoclass:: ActiveStatus() | ||
.. autoclass:: TypingStatus(Enum) | ||
:undoc-members: | ||
|
||
.. autoclass:: QuickReply | ||
.. autoclass:: QuickReplyText | ||
.. autoclass:: QuickReplyLocation | ||
.. autoclass:: QuickReplyPhoneNumber | ||
.. autoclass:: QuickReplyEmail | ||
|
||
These models are used in various functions, both as inputs and return values. | ||
A good tip is to write ``from fbchat.models import *`` at the start of your source, so you can use these models freely | ||
.. autoclass:: Poll | ||
.. autoclass:: PollOption | ||
|
||
.. automodule:: fbchat.models | ||
:members: | ||
.. autoclass:: Plan | ||
.. autoclass:: GuestStatus(Enum) | ||
:undoc-members: |
Oops, something went wrong.