Posts tagged with python

I am trying to disable caching with zeep as is described here: https://github.com/googleads/googleads-python-lib/blob/master/README.md#how-can-i-configure-or-disable-caching

adwords_client = adwords.AdWordsClient(   developer_token, oauth2_client, user_agent,   client_customer_id=client_customer_id,   cache=googleads.common.ZeepServiceProxy.NO_CACHE) 

But I lack understanding of what I should provided ot AdWordsClient as ‘oauth2_client’ attribute.

I am trying to find the solution here http://googleads.github.io/googleads-python-lib/googleads.oauth2.GoogleOAuth2Client-class.html but without success so far.

I am using For OAuth2 process google_auth_oauthlib and I managed retrieved refresh token, but at this point I am kinda lost, because due to the fact that I am running it on GCP App Engine, I am not able to use googleads.yaml file.

Can somebody enlighten me in a case of this oauth2_client?

Thanks sincerely!

I have a facebook page which posts image content regularly on it's feed. I want to create a Whatsapp account (preferably a bot) which people can subscribe to with a message, and start receiving all the new posts on the page as Whatsapp message from that number.

The following is the approach I want to follow.

  1. Create a subscription mechanism: Save the contact number of all users who send 'SUBSCRIBE' to my number to a broadcast list.
  2. Use facebook graph API to check for new posts on my facebook page feed.
  3. If there is a new post on the page feed, send the content to broadcast lists created in second step.

The second step can be easily done in python using the well documented graph api. The first and third step however seems complicated as the Whatsapp business API access is subject to approvals and the third party solutions are not well documented. What would be the best approach to implement the first and third steps mentioned above, preferably in python?