
    qh                     *    S r SSKJr   " S S\5      rg)zl
Podio OAuth2 backend, docs at:
    https://python-social-auth.readthedocs.io/en/latest/backends/podio.html
   )
BaseOAuth2c                   >    \ rS rSrSrSrSrSr/ SQrS r	S r
S	 rS
rg)PodioOAuth2	   z"Podio OAuth authentication backendpodioz!https://podio.com/oauth/authorizezhttps://podio.com/oauth/token))access_tokenr   )
token_typer	   )
expires_inexpires)refresh_tokenr   c                     US   S   $ )Nrefid )selfdetailsresponses      L/var/www/html/env/lib/python3.13/site-packages/social_core/backends/podio.pyget_user_idPodioOAuth2.get_user_id   s    t$$    c                 d    U R                  US   S   5      u  p#nSUS   S    3US   S   UUUS.$ )Nprofilenameuser_useruser_idmail)usernameemailfullname
first_name	last_name)get_user_names)r   r   r!   r"   r#   s        r   get_user_detailsPodioOAuth2.get_user_details   s[    *.*=*=Y'+
'i   0 ;<=f%f- $"
 	
r   c                 ,    U R                  SSSU-   0S9$ )Nz!https://api.podio.com/user/statusAuthorizationzOAuth2 )headers)get_json)r   r   argskwargss       r   	user_dataPodioOAuth2.user_data%   s(    }}/$i,&>?  
 	
r   r   N)__name__
__module____qualname____firstlineno____doc__r   AUTHORIZATION_URLACCESS_TOKEN_URL
EXTRA_DATAr   r%   r-   __static_attributes__r   r   r   r   r   	   s,    ,D;6J%


r   r   N)r3   oauthr   r   r   r   r   <module>r9      s   
  
*  
r   