skip to Main Content

Python Twitter API TwitterError: user_id must be type int

I'm trying to use python-twitter. I'm following this tutorial. Here is my code: tweet = cache.get('tweet') if not tweet: tweet = twitter.Api().GetUserTimeline(settings.TWITTER_USER)[0] tweet.date = datetime.strptime(tweet.created_at, "%a %b %d %H:%M:%S +0000 %Y") cache.set('tweet', tweet, settings.TWITTER_TIMEOUT) But I'm getting next error: Twitter.error.TwitterError:…

VIEW QUESTION

retrieve async ads insights results from FB ads API with pagination – Facebook api

I am using facebook-python-ads-sdk to make async calls for FB insights API as described. params = { "time_increment": 1, "level": "ad", "date_preset": "last_28d", "breakdowns": "hourly_stats_aggregated_by_advertiser_time_zone", "limit": 1000 } job = AdAccount("id").get_insights_async(params=params) result_cursor = wait_for_async_job(job) results = [item for item in…

VIEW QUESTION
Back To Top
Search