Another noobie question. I am trying to authenticate a REST request using Python.
I import requests and fire off a command like this:
r=requests.post('https://www.exacttargetapis.com/hub/v1/campaigns', 'Content-Type: application/json{"clientId": "xx","clientSecret": "xx"}')
I get status_code 401. This tells me the URL is good and so i the request but the authorisation is not.
I have seen a few scripts that import urllib2 and use authentication this way, but as a total beginner to Python i'm not sure how to apply this.
Could anyone show me a templated approach to this and deconstruct and use ? I would be super greateful.
thanks,