From 07240603b2fc64c6433d8fbe9e1e8db47a9f1cfe Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 12 Apr 2021 21:28:42 -0500 Subject: [PATCH] Document models --- docs/index.rst | 1 + docs/models.rst | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 docs/models.rst diff --git a/docs/index.rst b/docs/index.rst index 87a62cb..279cd8d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -18,6 +18,7 @@ Contents: cursor_tutorial.rst api.rst client.rst + models.rst stream.rst exceptions.rst extended_tweets.rst diff --git a/docs/models.rst b/docs/models.rst new file mode 100644 index 0000000..129c03f --- /dev/null +++ b/docs/models.rst @@ -0,0 +1,34 @@ +.. _models_reference: + +.. currentmodule:: tweepy + +**************** +Models Reference +**************** + +API v2 +====== + +.. class:: Media + + :reference: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/media + +.. class:: Place + + :reference: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/place + +.. class:: Poll + + :reference: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/poll + +.. class:: ReferencedTweet + + :reference: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/tweet + +.. class:: Tweet + + :reference: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/tweet + +.. class:: User + + :reference: https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/user -- 2.25.1