Обращаюсь к api ok и возникает такая ошибка, не пойму в чем дело...
def ok_wall_post(self, media):
sig_first = self.ok_signature(ok_eternal_token, ok_client_secret)
attachment = dict(media=[])
attachment.get('media').append(media)
# import pdb;
# pdb.set_trace()
print(type(ok_public_key), type(str(attachment)), type(sig_first))
sig = self.ok_signature('application_key=%sattachment=%smethod=mediatopic.post%s') % \
(ok_public_key, str(attachment), sig_first)
url = ok_api + 'application_key=%s&attachment=%s&method=mediatopic.post&sig=%s&access_token=%s' % \
(ok_public_key, str(attachment), sig, ok_eternal_token)
req = requests.get(url)
pass