|
| 1 | +Changelog |
| 2 | +--------- |
| 3 | + |
| 4 | +Version 3.1 |
| 5 | +========== |
| 6 | + |
| 7 | +What's New |
| 8 | +____________ |
| 9 | + |
| 10 | +* :py:func:`twitter.api.Api.PostMediaMetadata()` Method allows the posting of alt text (hover text) to a photo on Twitter. Note that it appears that you have to call this method prior to attaching the photo to a status. |
| 11 | + |
| 12 | +* A couple new methods have been added related to showing the connections between two users: |
| 13 | + |
| 14 | + * :py:func:`twitter.api.Api.ShowFriendship()` shows the connection between two users (i.e., are they following each other?) |
| 15 | + * :py:func:`twitter.api.Api.IncomingFriendship()` shows all of the authenticated user's pending follower requests (if the user has set their account to private). |
| 16 | + * :py:func:`twitter.api.Api.OutgoingFriendship()` shows the authenticated user's request to follow other users (i.e. the user has attempted to follow a private account). |
| 17 | + |
| 18 | +* Several methods were added related to muting users: |
| 19 | + |
| 20 | + * :py:func:`twitter.api.Api.GetMutes()` returns **all** users the currently authenticated user is muting (as ``twitter.models.User`` objects). |
| 21 | + * :py:func:`twitter.api.Api.GetMutesPaged()` returns a page of ``twitter.models.User`` objects. |
| 22 | + * :py:func:`twitter.api.Api.GetMutesIDs()` returns **all** of the users the currently authenticated user is muting as integers. |
| 23 | + * :py:func:`twitter.api.Api.GetMutesIDsPaged()` returns a single page of the users the currently authenticated user is muting as integers. |
| 24 | + |
| 25 | + |
| 26 | +What's Changed |
| 27 | +______________ |
| 28 | + |
| 29 | +* :py:func:`twitter.api.Api.GetStatus()` Now accepts the keyword argument ``include_ext_alt_text`` which will request alt text to be included with the Status object being returned (if available). Defaults to ``True``. |
| 30 | + |
| 31 | +* ``[model].__repr__()`` functions have been revised for better Unicode compatibility. If you notice any weirdness, please let us know. |
| 32 | + |
| 33 | +* :py:func:`twitter.api.Api()` no longer accepts the ``shortner`` parameter; however, see ``examples/shorten_url.py`` for an example of how to use a URL shortener with the API. |
| 34 | + |
| 35 | +* :py:func:`twitter.api.Api._Encode()` and :py:func:`twitter.api.Api._EncodePostData()` have both been refactored out of the API. |
| 36 | + |
| 37 | +* :py:class:`twitter.models.Media` now has an attribute ``ext_alt_text`` for alt (hover) text for images posted to Twitter. |
| 38 | + |
| 39 | +* :py:class:`twitter.models.Status` no longer has the properties ``relative_created_at``, ``now``, or ``Now``. If you require a relative time, we suggest using a third-party library. |
| 40 | + |
| 41 | +* Updated examples, specifically ``examples/twitter-to-xhtml.py``, ``examples/view_friends.py``, ``examples/shorten_url.py`` |
| 42 | + |
| 43 | +* Updated ``get_access_token.py`` script to be python3 compatible. |
0 commit comments