@@ -57,7 +57,8 @@ def get(self, endpoint, params=None):
5757 """
5858 response = self .session .get (
5959 self .url + endpoint ,
60- params = params )
60+ params = params
61+ )
6162 try :
6263 response .raise_for_status ()
6364 except requests .exceptions .HTTPError as e :
@@ -89,16 +90,19 @@ def get(self, endpoint, params=None):
8990 "status" : response .status_code
9091 }
9192
92- def post (self , endpoint , body = None ):
93+ def post (self , endpoint , body = None , params = None ):
9394 """Method that completes a POST request to the MapRoulette API
9495
9596 :param endpoint: the server endpoint to use for the POST request
9697 :param body: the body of the request (optional)
98+ :param params: the parameters that pertain to the request (optional)
9799 :returns: a JSON object containing the API response
98100 """
99101 response = self .session .post (
100102 self .url + endpoint ,
101- json = body )
103+ params = params ,
104+ json = body
105+ )
102106 try :
103107 response .raise_for_status ()
104108 except requests .exceptions .HTTPError as e :
@@ -132,16 +136,19 @@ def post(self, endpoint, body=None):
132136 "status" : response .status_code
133137 }
134138
135- def put (self , endpoint , body = None ):
139+ def put (self , endpoint , body = None , params = None ):
136140 """Method that completes a PUT request to the MapRoulette API
137141
138142 :param endpoint: the server endpoint to use for the PUT request
139143 :param body: the body of the request (optional)
144+ :param params: the parameters that pertain to the request (optional)
140145 :returns: a JSON object containing the response code and the API response if
141146 """
142147 response = self .session .put (
143148 self .url + endpoint ,
144- json = body )
149+ params = params ,
150+ json = body
151+ )
145152 try :
146153 response .raise_for_status ()
147154 except requests .exceptions .HTTPError as e :
0 commit comments