
    h:                         d dl Z d dlZddZdS )    Nc                     |}dd|  ddd}t          j        ||          }|j        dk    r|                                }|d         }|S t	          d|j                    d S )	Nzapplication/jsonzBearer TWD)zContent-TypeAuthorizationCurrencyExchange_code)headers   datazError: )requestsgetstatus_codejsonprint)
auth_tokenapi_urlurlr   responser
   platform_lists          G/Users/gualin/Documents/wsky_tg_auto_maintain/utils/get_all_platform.pyget_all_platformr      s    
C*.*..	 G |C111Hs""}}V.,..///t    )NN)r   r   r    r   r   <module>r      s5          r   