Skip to content

Commit

Permalink
mark scoped_timeline as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
smaeda-ks committed Sep 2, 2019
1 parent 1b8bffe commit fcb6096
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion twitter_ads/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from twitter_ads.enum import TRANSFORM
from twitter_ads.http import Request
from twitter_ads.cursor import Cursor
from twitter_ads.utils import Deprecated
from twitter_ads import API_VERSION

from twitter_ads.resource import resource_property, Resource
Expand All @@ -27,7 +28,7 @@ class Account(Resource):
RESOURCE_COLLECTION = '/' + API_VERSION + '/accounts'
RESOURCE = '/' + API_VERSION + '/accounts/{id}'
FEATURES = '/' + API_VERSION + '/accounts/{id}/features'
SCOPED_TIMELINE = '/' + API_VERSION + '/accounts/{id}/scoped_timeline'
SCOPED_TIMELINE = '/5/accounts/{id}/scoped_timeline'

def __init__(self, client):
self._client = client
Expand Down Expand Up @@ -155,6 +156,8 @@ def video_website_cards(self, id=None, **kwargs):
"""
return self._load_resource(VideoWebsiteCard, id, **kwargs)

@Deprecated('This method has been deprecated as of version 5'
'and no longer works in the latest version.')
def scoped_timeline(self, *id, **kwargs):
"""
Returns the most recent promotable Tweets created by the specified Twitter user.
Expand Down

0 comments on commit fcb6096

Please sign in to comment.