o
    Q?h                     @   s.   d dl mZ d dlmZ dedefddZdS )    )OAuth2Session)	API_Erroroauthreturnc                 C   sT   t | jdd }| jd| dd| jid}|jdkr#t| S t|j	|j)z. Returns array of shops, Empty array if error .r   z.https://openapi.etsy.com/v3/application/users/z/shopsz	x-api-key)headers   )
straccess_tokensplitget	client_idstatus_codedictjsonr   text)r   userIdres r   L/var/www/html/riverr-enterprise-integrations-main/V2/functions/Etsy/Shops.pygetEtsyShop   s   r   N)requests_oauthlibr   V2.middlewares.authr   r   r   r   r   r   r   <module>   s    