I am building a Business Intelligent chat bot where data is retrieved from APIs. I am making the API calls from cloud functions filtering and returning the data.
I can make calls while I am connected to VPN but not from outside (IBM cloud functions)
import requests
import pandas as pd
def reports(api_url):
r = requests.get(url)['Body']
df = pd.read_json(r)
#filtered report
filtered_df = df[df['state']=='CA']
return filtered_df.to_json()
The above api_url is private. I get HTTP connection error when called IBM cloud functions.