
    'i                     6    d dl Z dZdZdZdZd
dedefdZd
d	Zy)    NGETPOSTDELETEPUTendpointmethodc                 $   	 t        j                  || ||r|nd       }|j                  dk7  rt        |      	 |j	                         S # t         j
                  $ r |j                  cY S w xY w# t         j                  $ r t        d      w xY w)N)r   urlheadersjson   zRequest exception!)	error_msg)requestsrequeststatus_code	Exceptionr   JSONDecodeErrortextRequestException)r   r   r   dataresps        \/var/www/br/venv/lib/python3.12/site-packages/py_builder_signing_sdk/http_helpers/helpers.pyr   r   
   s    8xttQU
 s"D/!	99;'' 	99	 $$ 8"6778s(   7A/ A
 
A,)A/ +A,,A/ / Bc                 &    t        | t        ||      S )N)r   r   )r   r   r   s      r   postr      s    8T7D11    )NN)r   r   r   r   r   strr   r    r   r   <module>r      s6     	8c 83 8"2r   