I think I'm missing something and needed someone to hit me on my head.
import sys
import tweepy
import urllib
import simplejson
from pprint import pprint
CONSUMER_KEY = '----'
CONSUMER_SECRET = '----'
ACCESS_KEY = '----'
ACCESS_SECRET = '----'
auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET)
auth.set_access_token(ACCESS_KEY, ACCESS_SECRET)
api = tweepy.API(auth)
rate = api.rate_limit_status()
print rate["remaining_hits"]
print api.me().name
search = urllib.urlopen("https://api.twitter.com/1.1/search/tweets.json?q=+arsenal&page=1")
dict = simplejson.loads(search.read())
pprint(dict)
The OAuth works and I'm able to use the tweepy API to return my rate_limit_status and also print my name. I then wanted to use the search API v1.1 (tweepy's api.search() - implements the older search without OAuth) and get a 'Bad Authentication Data' error.
I think my understanding of OAuth is badly incorrect - I'm presuming that once I get an access token I can then make authorized calls. From running the above code I think thats wrong - Could someone help me execute a API1.1 Search using OAuth - what do I need to send with the request?
Thanks!