+
    TŎi
                     j   ^ RI t ^ RIt]P                  P                  ]4      t]P                  P                  ]]P                  4      t] P                  P                  ^]4       ^ RI
t
^ RIHt ^ RIHt ^ RI5 ^ RIHt  ! R R4      tR t] P(                  P*                  '       d
   ]! 4        R# R# )	    N)FacebookSession)FacebookAdsApi)*)FacebookErrorc                      a  ] tR t^t o Rt]P                  ! 4       t]'       d   RtMRt]	R 4       t
]R 4       t]R 4       tRtV tR# )	Authenticationaf  
DON'T USE THIS CLASS DIRECTLY. USE `auth()` function from this module
Helper class to authenticate using config.json config file from this
repository. This is useful in two cases:
    - Testing environment
    - Interactive exploration in REPL
This class shouldn't be used in production.
It's intended for development. Use FacebookAdsApi.init in production
TFc                    V P                   # N)_is_authenticated)clss   &j/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/facebook_business/bootstrap.pyis_authenticatedAuthentication.is_authenticated&   s    $$$    c                    \        \        P                  P                  \        R 4      4      ;_uu_ 4       p\
        P                  ! V4      pRRR4       V#   + '       g   i     X# ; i)zconfig.jsonN)openospathjoinrepo_dirjsonload)r   config_fileconfigs   &  r   load_configAuthentication.load_config*   sD    "'',,x788KYY{+F 9 98s   AA(	c                j   V P                  4       pV P                  '       d   VR,          VP                  RR4      3# VR,          '       d   VR,          '       dv   VR,          '       dg   VR,          '       dX   \        P                  ! VR,          VR,          VR,          VR,          4       RV n        VR,          VP                  RR4      3# \        R
4      pV\        VP                  4       4      ,
          p\        RP                  R	P                  V4      R	P                  V4      4      4      h)zu
Prepare for Ads API calls and return a tuple with act_id
and page_id. page_id can be None but act_id is always set.
act_idpage_idNapp_id
app_secretaccess_tokenTzN
	File config.json needs to have the following fields: {}
	Missing fields: {}
z, )r    r!   r   r"   )
r   r   getr   initsetkeysr   formatr   )r   r   required_fieldsmissing_fieldss   &   r   authAuthentication.auth0   s    "   (#VZZ	4%@@@(| 4 4hF>$:$:x |$~&x 	 %)C!(#VZZ	4%@@@ "BO -s6;;=/AAN))/IIo.IIn-* r    N)__name__
__module____qualname____firstlineno____doc__r   get_default_api_apir   propertyr   classmethodr   r*   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sc      ))+D !% %  
 $ $r   r   c                  *    \         P                  4       # r
   )r   r*   r,   r   r   r*   r*   X   s      r   )sysr   r   dirname__file__this_dirr   pardirr   insertr   facebook_business.sessionr   facebook_business.apir   facebook_business.adobjectsfacebook_business.exceptionsr   r   r*   flagsinteractiver,   r   r   <module>rF      s     	77??8$77<<")), 8   5 0 ) 6@ @F! 99F r   