
    Tњh\                         S r SSKJr  SSKJrJrJr   " S S\5      r\R                  " \5      r	\R                  " \5      r
g)zViews for Hubspot API.    )get_adapter)OAuth2AdapterOAuth2CallbackViewOAuth2LoginViewc                   .    \ rS rSrSrSrSrSrSrS r	Sr
g	)
HubspotOAuth2Adapter   z!OAuth2Adapter for Hubspot API v3.hubspotz'https://app.hubspot.com/oauth/authorizez%https://api.hubapi.com/oauth/v1/tokenz-https://api.hubapi.com/oauth/v1/access-tokensc                    SS0n[        5       R                  5       R                  SR                  U R                  UR
                  5      US9nUR                  5         UR                  5       nU R                  5       R                  X5      $ )NzContent-Typezapplication/jsonz{0}/{1})headers)
r   get_requests_sessiongetformatprofile_urltokenraise_for_statusjsonget_providersociallogin_from_response)selfrequestappr   kwargsr   response
extra_datas           hD:\Anime\Ugyen\janka_web_project\venv\Lib\site-packages\allauth/socialaccount/providers/hubspot/views.pycomplete_login#HubspotOAuth2Adapter.complete_login   sx    !#56M!!#S!!$"2"2EKK@'SR 	
 	!!#]]_
  "<<WQQ     N)__name__
__module____qualname____firstlineno____doc__provider_idauthorize_urlaccess_token_urlr   r   __static_attributes__r    r   r   r   r      s     +K=M>AK	Rr   r   N)r%   allauth.socialaccount.adapterr   ,allauth.socialaccount.providers.oauth2.viewsr   r   r   r   adapter_viewoauth2_loginoauth2_callbackr    r   r   <module>r/      sG     5 R= R* ++,@A$112FGr   