X Tutup
Skip to content

Commit b692a9b

Browse files
authored
Merge pull request bear#545 from bear/develop
Develop
2 parents b9fdb7b + af6a3e9 commit b692a9b

18 files changed

+383
-617
lines changed

doc/changelog.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
Changelog
22
---------
3+
4+
Version 3.4
5+
===========
6+
7+
Deprecations
8+
------------
9+
10+
* :py:func:`twitter.api.Api.UpdateBackgroundImage`. Please make sure that your code does not call this function as it will now return a hard error. There is no replacement function. This was deprecated by Twitter around July 2015.
11+
12+
* :py:func:`twitter.api.Api.PostMedia` has been removed. Please use :py:func:`twitter.api.Api.PostUpdate` instead.
13+
14+
* :py:func:`twitter.api.Api.PostMultipleMedia`. Please use :py:func:`twitter.api.Api.PostUpdate` instead.
15+
16+
317
Version 3.3.1
418
=============
519

testdata/create_friendship.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":2425151,"id_str":"2425151","name":"Facebook","screen_name":"facebook","location":"Menlo Park, California","description":"Give people the power to build community and bring the world closer together.","url":"http:\/\/t.co\/7bZ2KCQJ2k","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/7bZ2KCQJ2k","expanded_url":"http:\/\/facebook.com","display_url":"facebook.com","indices":[0,22]}]},"description":{"urls":[]}},"protected":false,"followers_count":14034525,"friends_count":92,"listed_count":43686,"created_at":"Tue Mar 27 07:29:25 +0000 2007","favourites_count":430,"utc_offset":-28800,"time_zone":"Pacific Time (US & Canada)","geo_enabled":false,"verified":true,"statuses_count":8481,"lang":"en","status":{"created_at":"Fri Dec 15 22:36:04 +0000 2017","id":941799043407269888,"id_str":"941799043407269888","text":"@adambungle Hi Adam. If there's already a Facebook account associated with your email address, please fill out this\u2026 https:\/\/t.co\/KJEGff3Sp8","truncated":true,"entities":{"hashtags":[],"symbols":[],"user_mentions":[{"screen_name":"adambungle","name":"Adam Forster","id":212532742,"id_str":"212532742","indices":[0,11]}],"urls":[{"url":"https:\/\/t.co\/KJEGff3Sp8","expanded_url":"https:\/\/twitter.com\/i\/web\/status\/941799043407269888","display_url":"twitter.com\/i\/web\/status\/9\u2026","indices":[117,140]}]},"source":"\u003ca href=\"http:\/\/www.spredfast.com\" rel=\"nofollow\"\u003eSpredfast app\u003c\/a\u003e","in_reply_to_status_id":941231370600435712,"in_reply_to_status_id_str":"941231370600435712","in_reply_to_user_id":212532742,"in_reply_to_user_id_str":"212532742","in_reply_to_screen_name":"adambungle","geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":1,"favorite_count":4,"favorited":false,"retweeted":false,"possibly_sensitive":false,"lang":"en"},"contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"3C5A99","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/4699594\/quail_air_background.png","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/4699594\/quail_air_background.png","profile_background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/3513354941\/24aaffa670e634a7da9a087bfa83abe6_normal.png","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/3513354941\/24aaffa670e634a7da9a087bfa83abe6_normal.png","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/2425151\/1506715336","profile_link_color":"3C5A99","profile_sidebar_border_color":"DEDEDE","profile_sidebar_fill_color":"FFFFFF","profile_text_color":"000000","profile_use_background_image":true,"has_extended_profile":false,"default_profile":false,"default_profile_image":false,"following":false,"follow_request_sent":false,"notifications":false,"muting":false,"translator_type":"regular"}

testdata/destroy_friendship.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":2425151,"id_str":"2425151","name":"Facebook","screen_name":"facebook","location":"Menlo Park, California","description":"Give people the power to build community and bring the world closer together.","url":"http:\/\/t.co\/7bZ2KCQJ2k","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/7bZ2KCQJ2k","expanded_url":"http:\/\/facebook.com","display_url":"facebook.com","indices":[0,22]}]},"description":{"urls":[]}},"protected":false,"followers_count":14034332,"friends_count":92,"listed_count":43686,"created_at":"Tue Mar 27 07:29:25 +0000 2007","favourites_count":430,"utc_offset":-28800,"time_zone":"Pacific Time (US & Canada)","geo_enabled":false,"verified":true,"statuses_count":8481,"lang":"en","status":{"created_at":"Fri Dec 15 22:36:04 +0000 2017","id":941799043407269888,"id_str":"941799043407269888","text":"@adambungle Hi Adam. If there's already a Facebook account associated with your email address, please fill out this\u2026 https:\/\/t.co\/KJEGff3Sp8","truncated":true,"entities":{"hashtags":[],"symbols":[],"user_mentions":[{"screen_name":"adambungle","name":"Adam Forster","id":212532742,"id_str":"212532742","indices":[0,11]}],"urls":[{"url":"https:\/\/t.co\/KJEGff3Sp8","expanded_url":"https:\/\/twitter.com\/i\/web\/status\/941799043407269888","display_url":"twitter.com\/i\/web\/status\/9\u2026","indices":[117,140]}]},"source":"\u003ca href=\"http:\/\/www.spredfast.com\" rel=\"nofollow\"\u003eSpredfast app\u003c\/a\u003e","in_reply_to_status_id":941231370600435712,"in_reply_to_status_id_str":"941231370600435712","in_reply_to_user_id":212532742,"in_reply_to_user_id_str":"212532742","in_reply_to_screen_name":"adambungle","geo":null,"coordinates":null,"place":null,"contributors":null,"is_quote_status":false,"retweet_count":1,"favorite_count":4,"favorited":false,"retweeted":false,"possibly_sensitive":false,"lang":"en"},"contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"3C5A99","profile_background_image_url":"http:\/\/pbs.twimg.com\/profile_background_images\/4699594\/quail_air_background.png","profile_background_image_url_https":"https:\/\/pbs.twimg.com\/profile_background_images\/4699594\/quail_air_background.png","profile_background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/3513354941\/24aaffa670e634a7da9a087bfa83abe6_normal.png","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/3513354941\/24aaffa670e634a7da9a087bfa83abe6_normal.png","profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/2425151\/1506715336","profile_link_color":"3C5A99","profile_sidebar_border_color":"DEDEDE","profile_sidebar_fill_color":"FFFFFF","profile_text_color":"000000","profile_use_background_image":true,"has_extended_profile":false,"default_profile":false,"default_profile_image":false,"following":true,"follow_request_sent":false,"notifications":false,"muting":false,"translator_type":"regular"}

testdata/direct_messages/get_direct_messages.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"sender_screen_name": "__jcbl__", "created_at": "Sun Dec 20 15:41:09 +0000 2015", "entities": {"symbols": [], "hashtags": [], "user_mentions": [], "urls": []}, "id": 678601038023147523, "text": "That's cool friend", "sender_id": 372018022, "id_str": "678601038023147523", "recipient_id_str": "4012966701", "recipient_screen_name": "notinourselves", "sender_id_str": "372018022", "recipient": {"protected": true, "geo_enabled": true, "listed_count": 1, "created_at": "Wed Oct 21 23:53:04 +0000 2015", "entities": {"description": {"urls": []}}, "url": null, "profile_image_url_https": "https://abs.twimg.com/sticky/default_profile_images/default_profile_2_normal.png", "profile_background_tile": false, "follow_request_sent": false, "notifications": false, "statuses_count": 76, "profile_sidebar_fill_color": "000000", "has_extended_profile": false, "friends_count": 1, "following": false, "profile_banner_url": "https://pbs.twimg.com/profile_banners/4012966701/1453123196", "screen_name": "notinourselves", "lang": "en", "favourites_count": 1, "verified": false, "time_zone": null, "default_profile_image": true, "name": "notinourselves", "profile_sidebar_border_color": "000000", "id": 4012966701, "is_translation_enabled": false, "followers_count": 1, "profile_link_color": "000000", "profile_text_color": "000000", "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/736320724164448256/LgaAQoav.jpg", "utc_offset": null, "id_str": "4012966701", "default_profile": false, "contributors_enabled": false, "profile_use_background_image": true, "description": "", "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/736320724164448256/LgaAQoav.jpg", "profile_background_color": "000000", "location": "", "profile_image_url": "http://abs.twimg.com/sticky/default_profile_images/default_profile_2_normal.png", "is_translator": false}, "recipient_id": 4012966701, "sender": {"protected": false, "geo_enabled": false, "listed_count": 6, "created_at": "Sun Sep 11 23:49:28 +0000 2011", "entities": {"description": {"urls": []}, "url": {"urls": [{"indices": [0, 22], "expanded_url": "http://iseverythingstilltheworst.com", "display_url": "iseverythingstilltheworst.com", "url": "http://t.co/wtg3XzqQTX"}]}}, "url": "http://t.co/wtg3XzqQTX", "profile_image_url_https": "https://pbs.twimg.com/profile_images/719724025384083456/N98iQXqX_normal.jpg", "profile_background_tile": false, "follow_request_sent": false, "notifications": false, "statuses_count": 441, "profile_sidebar_fill_color": "000000", "has_extended_profile": false, "friends_count": 363, "following": true, "default_profile": false, "screen_name": "__jcbl__", "lang": "en", "favourites_count": 2212, "verified": false, "time_zone": "Eastern Time (US & Canada)", "default_profile_image": false, "name": "jeremy", "profile_sidebar_border_color": "000000", "id": 372018022, "is_translation_enabled": false, "followers_count": 67, "profile_link_color": "EE3355", "profile_text_color": "000000", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "utc_offset": -14400, "id_str": "372018022", "contributors_enabled": false, "profile_use_background_image": false, "description": "my kingdom for a microwave that doesn't beep", "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "profile_background_color": "FFFFFF", "location": "not a very good kingdom tbh", "profile_image_url": "http://pbs.twimg.com/profile_images/719724025384083456/N98iQXqX_normal.jpg", "is_translator": false}}

testdata/direct_messages/get_sent_direct_messages.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"sender_id_str": "372018022", "entities": {"urls": [{"expanded_url": "https://twitter.com/CamilleStein/status/854322543364382720", "indices": [0, 23], "url": "https://t.co/L4MIplKUwR", "display_url": "twitter.com/CamilleStein/s\u2026"}], "symbols": [], "hashtags": [], "user_mentions": []}, "recipient_id": 3206731269, "text": "https://t.co/L4MIplKUwR", "id_str": "855194351294656515", "sender_id": 372018022, "id": 855194351294656515, "created_at": "Thu Apr 20 22:59:56 +0000 2017", "recipient_id_str": "3206731269", "recipient": {"is_translation_enabled": false, "following": true, "name": "The GIFing Bot", "profile_image_url": "http://pbs.twimg.com/profile_images/592359786659880960/IwQsKZ7b_normal.png", "profile_sidebar_border_color": "000000", "followers_count": 84, "created_at": "Sat Apr 25 16:31:07 +0000 2015", "profile_link_color": "02B400", "is_translator": false, "id": 3206731269, "profile_sidebar_fill_color": "000000", "has_extended_profile": false, "profile_background_tile": false, "profile_use_background_image": false, "default_profile_image": false, "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "lang": "en", "verified": false, "favourites_count": 0, "protected": false, "notifications": false, "friends_count": 100, "listed_count": 7, "location": "", "statuses_count": 19, "entities": {"url": {"urls": [{"expanded_url": "http://iseverythingstilltheworst.com/projects/the-gifing-bot/", "indices": [0, 23], "url": "https://t.co/BTsv2OJnqv", "display_url": "iseverythingstilltheworst.com/projects/the-g\u2026"}]}, "description": {"urls": []}}, "url": "https://t.co/BTsv2OJnqv", "utc_offset": null, "time_zone": null, "profile_background_color": "000000", "id_str": "3206731269", "description": "DM me a tweet with a GIF in it and I'll make it into an actual GIF!!", "follow_request_sent": false, "screen_name": "TheGIFingBot", "profile_text_color": "000000", "translator_type": "none", "profile_image_url_https": "https://pbs.twimg.com/profile_images/592359786659880960/IwQsKZ7b_normal.png", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "contributors_enabled": false, "default_profile": false, "geo_enabled": false}, "sender": {"is_translation_enabled": false, "following": false, "name": "Jeremy", "profile_image_url": "http://pbs.twimg.com/profile_images/800076020741246976/fMpwMcBJ_normal.jpg", "profile_sidebar_border_color": "000000", "followers_count": 142, "created_at": "Sun Sep 11 23:49:28 +0000 2011", "profile_link_color": "EE3355", "is_translator": false, "id": 372018022, "profile_sidebar_fill_color": "000000", "has_extended_profile": false, "profile_background_tile": false, "profile_use_background_image": false, "default_profile_image": false, "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "lang": "en", "verified": false, "favourites_count": 7546, "protected": false, "notifications": false, "friends_count": 593, "listed_count": 11, "location": "philly", "statuses_count": 1785, "entities": {"url": {"urls": [{"expanded_url": "http://iseverythingstilltheworst.com", "indices": [0, 23], "url": "https://t.co/wtg3XyREnj", "display_url": "iseverythingstilltheworst.com"}]}, "description": {"urls": []}}, "url": "https://t.co/wtg3XyREnj", "utc_offset": -14400, "time_zone": "Eastern Time (US & Canada)", "profile_background_color": "FFFFFF", "id_str": "372018022", "description": "these people have addresses | #botally", "follow_request_sent": false, "screen_name": "__jcbl__", "profile_text_color": "000000", "translator_type": "none", "profile_image_url_https": "https://pbs.twimg.com/profile_images/800076020741246976/fMpwMcBJ_normal.jpg", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "profile_banner_url": "https://pbs.twimg.com/profile_banners/372018022/1475799101", "contributors_enabled": false, "default_profile": false, "geo_enabled": false}, "sender_screen_name": "__jcbl__", "recipient_screen_name": "TheGIFingBot"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"sender_id_str": "372018022", "entities": {"urls": [{"expanded_url": "https://twitter.com/CamilleStein/status/854322543364382720", "indices": [0, 23], "url": "https://t.co/L4MIplKUwR", "display_url": "twitter.com/CamilleStein/s\u2026"}], "symbols": [], "hashtags": [], "user_mentions": []}, "recipient_id": 3206731269, "text": "https://t.co/L4MIplKUwR", "id_str": "855194351294656515", "sender_id": 372018022, "id": 855194351294656515, "created_at": "Thu Apr 20 22:59:56 +0000 2017", "recipient_id_str": "3206731269", "recipient": {"is_translation_enabled": false, "following": true, "name": "The GIFing Bot", "profile_image_url": "http://pbs.twimg.com/profile_images/592359786659880960/IwQsKZ7b_normal.png", "profile_sidebar_border_color": "000000", "followers_count": 84, "created_at": "Sat Apr 25 16:31:07 +0000 2015", "profile_link_color": "02B400", "is_translator": false, "id": 3206731269, "profile_sidebar_fill_color": "000000", "has_extended_profile": false, "profile_background_tile": false, "profile_use_background_image": false, "default_profile_image": false, "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "lang": "en", "verified": false, "favourites_count": 0, "protected": false, "notifications": false, "friends_count": 100, "listed_count": 7, "location": "", "statuses_count": 19, "entities": {"url": {"urls": [{"expanded_url": "http://iseverythingstilltheworst.com/projects/the-gifing-bot/", "indices": [0, 23], "url": "https://t.co/BTsv2OJnqv", "display_url": "iseverythingstilltheworst.com/projects/the-g\u2026"}]}, "description": {"urls": []}}, "url": "https://t.co/BTsv2OJnqv", "utc_offset": null, "time_zone": null, "profile_background_color": "000000", "id_str": "3206731269", "description": "DM me a tweet with a GIF in it and I'll make it into an actual GIF!!", "follow_request_sent": false, "screen_name": "TheGIFingBot", "profile_text_color": "000000", "translator_type": "none", "profile_image_url_https": "https://pbs.twimg.com/profile_images/592359786659880960/IwQsKZ7b_normal.png", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "contributors_enabled": false, "default_profile": false, "geo_enabled": false}, "sender": {"is_translation_enabled": false, "following": false, "name": "Jeremy", "profile_image_url": "http://pbs.twimg.com/profile_images/800076020741246976/fMpwMcBJ_normal.jpg", "profile_sidebar_border_color": "000000", "followers_count": 142, "created_at": "Sun Sep 11 23:49:28 +0000 2011", "profile_link_color": "EE3355", "is_translator": false, "id": 372018022, "profile_sidebar_fill_color": "000000", "has_extended_profile": false, "profile_background_tile": false, "profile_use_background_image": false, "default_profile_image": false, "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png", "lang": "en", "verified": false, "favourites_count": 7546, "protected": false, "notifications": false, "friends_count": 593, "listed_count": 11, "location": "philly", "statuses_count": 1785, "entities": {"url": {"urls": [{"expanded_url": "http://iseverythingstilltheworst.com", "indices": [0, 23], "url": "https://t.co/wtg3XyREnj", "display_url": "iseverythingstilltheworst.com"}]}, "description": {"urls": []}}, "url": "https://t.co/wtg3XyREnj", "utc_offset": -14400, "time_zone": "Eastern Time (US & Canada)", "profile_background_color": "FFFFFF", "id_str": "372018022", "description": "these people have addresses | #botally", "follow_request_sent": false, "screen_name": "__jcbl__", "profile_text_color": "000000", "translator_type": "none", "profile_image_url_https": "https://pbs.twimg.com/profile_images/800076020741246976/fMpwMcBJ_normal.jpg", "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png", "profile_banner_url": "https://pbs.twimg.com/profile_banners/372018022/1475799101", "contributors_enabled": false, "default_profile": false, "geo_enabled": false}, "sender_screen_name": "__jcbl__", "recipient_screen_name": "TheGIFingBot"}

testdata/update_friendship.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"relationship":{"source":{"id":372018022,"id_str":"372018022","screen_name":"__jcbl__","following":true,"followed_by":false,"live_following":false,"following_received":null,"following_requested":false,"notifications_enabled":false,"can_dm":false,"blocking":false,"blocked_by":false,"muting":false,"want_retweets":true,"all_replies":false,"marked_spam":false},"target":{"id":2425151,"id_str":"2425151","screen_name":"facebook","following":false,"followed_by":true,"following_received":false,"following_requested":null}}}

0 commit comments

Comments
 (0)
X Tutup