Hello!
I am attempting to get a search to work in Max/MSP with the [maxurl] object. It allows me to send get requests, and send requests in a json dictionary. I am having trouble getting authentication, I keep receiving a 215 error (bad authorization) and I’m not sure why.
Here is what I am sending:
{
“http_method” : “GET”,
“Header” : “OAuth%20oauth_consumer_key=XXXXXXXXXX,oauth_signature_method=HMAC-SHA1,oauth_timestamp=1410761882900,oauth_nonce=XXXXXXX,oauth_version=1.0,oauth_token=XXXXXXXX-XXXXXXXXXXX,oauth_signature=XXXXXXX”,
“url” : “https://api.twitter.com/1.1/search/tweets.json?q=harvestworks”,
“Content-Type” : “application/x-www-form-urlencoded”,
“Host” : “api.twitter.com”,
“X-Target-URI” : “https://api.twitter.com”,
“Connection” : “Keep-Alive”
}
I followed the instructions on the twitter dev authorization api, and I searched for other suggestions. That is how I got the “Header” value formatted the way it is. A search online turned up that some people solved this by adding the “Content-Type” key and value. I added the “Host”, “X-Target…”, and “Connection” from what the console tool displayed. I still can’t figure it out… any suggestions?
Thank you!!!
Mike