@@ -0,0 +1,1250 @@
+import requests%0A%0Afrom .exceptions import PagarmeApiError%0A%0Adef post (end_point, data):%0A    pagarme_response = requests.post(end_point,data)%0A        if pagarme_response.status_code == 200:%0A            self.handle_response(pagarme_response.json())%0A        else:%0A            self.error(pagarme_response.json())%0A%0Adef get (end_point, data):%0A    pagarme_response = requests.get(end_point,data)%0A        if pagarme_response.status_code == 200:%0A            self.handle_response(pagarme_response.json())%0A        else:%0A            self.error(pagarme_response.json())%0A%0Adef put (end_point, data):%0A    pagarme_response = requests.put(end_point,data)%0A        if pagarme_response.status_code == 200:%0A            self.handle_response(pagarme_response.json())%0A        else:%0A            self.error(pagarme_response.json())%0A%0Adef delete (end_point,data):%0A    pagarme_response = requests.delete(end_point,data)%0A        if pagarme_response.status_code == 200:%0A            self.handle_response(pagarme_response.json())%0A        else:%0A            self.error(pagarme_response.json())%0A%0Adef handle_response(data):%0A        self.data.update(data)%0A%0Adef error(data):%0A    e = data%5B'errors'%5D%5B0%5D%0A    error_string = e%5B'type'%5D + ' - ' + e%5B'message'%5D%0A    raise PagarmeApiError(error_string)

create file handler_request in resources