{"action":"closed","issue":{"url":"https://api.github.com/repos/CheckbookWeb/api/issues/2","repository_url":"https://api.github.com/repos/CheckbookWeb/api","labels_url":"https://api.github.com/repos/CheckbookWeb/api/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/CheckbookWeb/api/issues/2/comments","events_url":"https://api.github.com/repos/CheckbookWeb/api/issues/2/events","html_url":"https://github.com/CheckbookWeb/api/issues/2","id":148464239,"number":2,"title":"500 Internal Server Error","user":{"login":"MikhailPorechenkov68","id":18058758,"avatar_url":"https://avatars.githubusercontent.com/u/18058758?v=3","gravatar_id":"","url":"https://api.github.com/users/MikhailPorechenkov68","html_url":"https://github.com/MikhailPorechenkov68","followers_url":"https://api.github.com/users/MikhailPorechenkov68/followers","following_url":"https://api.github.com/users/MikhailPorechenkov68/following{/other_user}","gists_url":"https://api.github.com/users/MikhailPorechenkov68/gists{/gist_id}","starred_url":"https://api.github.com/users/MikhailPorechenkov68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikhailPorechenkov68/subscriptions","organizations_url":"https://api.github.com/users/MikhailPorechenkov68/orgs","repos_url":"https://api.github.com/users/MikhailPorechenkov68/repos","events_url":"https://api.github.com/users/MikhailPorechenkov68/events{/privacy}","received_events_url":"https://api.github.com/users/MikhailPorechenkov68/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CheckbookWeb/api/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"aleer3za","id":17074885,"avatar_url":"https://avatars.githubusercontent.com/u/17074885?v=3","gravatar_id":"","url":"https://api.github.com/users/aleer3za","html_url":"https://github.com/aleer3za","followers_url":"https://api.github.com/users/aleer3za/followers","following_url":"https://api.github.com/users/aleer3za/following{/other_user}","gists_url":"https://api.github.com/users/aleer3za/gists{/gist_id}","starred_url":"https://api.github.com/users/aleer3za/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleer3za/subscriptions","organizations_url":"https://api.github.com/users/aleer3za/orgs","repos_url":"https://api.github.com/users/aleer3za/repos","events_url":"https://api.github.com/users/aleer3za/events{/privacy}","received_events_url":"https://api.github.com/users/aleer3za/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-04-14T19:51:19Z","updated_at":"2016-04-15T00:23:13Z","closed_at":"2016-04-15T00:23:13Z","body":"Here are my codes.\r\n\r\n    SECRET = ’Secret Key from Checkbook Account'\r\n    msg = 'POSTapplication/json/api/v2/check/digital'\r\n    signature = base64.b64encode(hmac.new(SECRET, msg=msg, digestmod=hashlib.sha256).digest()).decode()\r\n\r\n    params= { \"first_name\" : \"first\",\r\n              \"last_name\" : \"last\",\r\n              \"recipient\" : “a@b.com|Publishable Key from Checkbook Account\",\r\n              \"amount\" : 300 }\r\n\r\n    url = 'http://www.checkbook.io/api/v2/check/digital'\r\n    data = urllib.urlencode(params)\r\n    request = urllib2.Request(url, data)\r\n    base64string = base64.encodestring('%s:%s' % (SECRET, signature)).replace('\\n', '')\r\n    request.add_header(\"Authorization\", \"Basic %s\" % base64string)\r\n    response = urllib2.urlopen(request)\r\n    result = response.read()\r\n\r\n    return result\r\n\r\nI am getting 500 error on this api call."}}