From 3be44bec56fa6c82819c3ab684256690bdeedcaf Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 20 Feb 2021 22:46:53 -0600 Subject: [PATCH] Update Twitter Developer API reference links in API method docstrings --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index b011e99..d1605ee 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -351,7 +351,7 @@ class API: @payload('media') def simple_upload(self, filename, *, file=None, media_category=None, additional_owners=None, **kwargs): - """ :reference: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload + """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload """ if file is not None: files = {'media': (filename, file)} @@ -372,7 +372,7 @@ class API: def chunked_upload(self, filename, *, file=None, file_type=None, wait_for_async_finalize=True, media_category=None, additional_owners=None, **kwargs): - """ :reference https://developer.twitter.com/en/docs/media/upload-media/uploading-media/chunked-media-upload + """ :reference https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/uploading-media/chunked-media-upload """ fp = file or open(filename, 'rb') -- 2.25.1