我使用Python和我发送到URL的请求并获得使用httplib2的答复。 我得到的答复是在JSON,我怎么访问特定的参数。 我目前所面对的是:
resp, content = parser.request(access_token_uri, method = 'POST', body = params, headers = headers)
raise Exception(content['access_token'])
我得到的错误
string indices must be integers, not str
我该怎么做?
谢谢