forked from pool/python-twython
- Use GitHub archive tarball - Use %license - Remove bcond test - Update to v3.7.0 - Fixes for cursoring API endpoints - Improve html_for_tweet() parsing - Documentation cleanup - Documentation for cursor's return_pages keyword argument - Update links to Twitter API in documentation - Added create_metadata endpoint - Raise error for when cursor is not provided a callable - Add get_oembed_tweet-endpoint.patch - Fixed the api end point in get_oembed_tweet - Activate tests ignoring five failures - initial version v3.6.0 OBS-URL: https://build.opensuse.org/request/show/689955 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twython?expand=0&rev=1
23 lines
867 B
Diff
23 lines
867 B
Diff
From 340fb4ea162b3e02fb5e245ad8651ec62d34cea5 Mon Sep 17 00:00:00 2001
|
|
From: Vishvajit Pathak <vishvajit@motoinsight.com>
|
|
Date: Sat, 29 Sep 2018 15:18:31 +0530
|
|
Subject: [PATCH] ISSUE-497 : Fixed the api end point in get_oembed_tweet
|
|
|
|
---
|
|
twython/endpoints.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/twython/endpoints.py b/twython/endpoints.py
|
|
index 00392b8..9da30db 100644
|
|
--- a/twython/endpoints.py
|
|
+++ b/twython/endpoints.py
|
|
@@ -268,7 +268,7 @@ def get_oembed_tweet(self, **params):
|
|
https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed
|
|
|
|
"""
|
|
- return self.get('statuses/oembed', params=params)
|
|
+ return self.get('oembed', params=params)
|
|
|
|
def get_retweeters_ids(self, **params):
|
|
"""Returns a collection of up to 100 user IDs belonging to users who
|