o
    Q?hW                     @   sP   d dl Z d dlmZ d dlmZ d dlmZ dd Zd dl Z d dlZdd Z	dS )	    N)	urlencode)OAuth2Session)SANDBOXc                 C   s0   |  d}	 tdddd}|d}t| |S )Nhostnamez&AwearLLC-Riverr-SBX-27ca6ee8c-fa6ba91bz:https://api.ebay.com/oauth/api_scope/sell.account.readonlyzapp.riverr.app/shops)	client_idscoperedirect_uriz.https://auth.sandbox.ebay.com/oauth2/authorize)getr   authorization_urlprint)datar   oauthres r   H/var/www/html/riverr-enterprise-integrations-main/functions/Ebay/Auth.pyauth	   s   
r   c                 C   sL   |  d}|  d}d| }|| }t|| | d}t| dS )Nidchallenge_codezhhttps://riverr-enterprise-integrations-dot-riverr-enterprise-user.uc.r.appspot.com/ebay/merchant-delete/zutf-8)challengeResponse)r	   hashlibsha256encodedict	hexdigest)r   enterpriseIdchallengeCodeendpointverificationTokenmr   r   r   merchantDelete(   s   


r   )
base64oauthlib.commonr   requests_oauthlibr   configs.firebaser   r   r   r   r   r   r   r   <module>   s    