GuglielmoTor commited on
Commit
483353d
·
verified ·
1 Parent(s): a0132ed

Update apis/Bubble_API_Calls.py

Browse files
Files changed (1) hide show
  1. apis/Bubble_API_Calls.py +3 -2
apis/Bubble_API_Calls.py CHANGED
@@ -81,13 +81,14 @@ def fetch_linkedin_posts_data_from_bubble(
81
  Fetches data from the Bubble.io Data API, handling pagination to retrieve all results.
82
  """
83
  bubble_api_key = os.environ.get(BUBBLE_API_KEY_PRIVATE_ENV_VAR)
84
-
 
85
  if not bubble_api_key:
86
  error_msg = "Bubble API not set."
87
  logger.error(error_msg)
88
  return None, error_msg
89
 
90
- base_url = f"{api_endpoint}/{data_type}"
91
  headers = {"Authorization": f"Bearer {bubble_api_key}"}
92
 
93
  constraints = [{"key": constraint_key, "constraint_type": constraint_type, "value": constraint_value}]
 
81
  Fetches data from the Bubble.io Data API, handling pagination to retrieve all results.
82
  """
83
  bubble_api_key = os.environ.get(BUBBLE_API_KEY_PRIVATE_ENV_VAR)
84
+
85
+
86
  if not bubble_api_key:
87
  error_msg = "Bubble API not set."
88
  logger.error(error_msg)
89
  return None, error_msg
90
 
91
+ base_url = f"{BUBBLE_API_ENDPOINT_ENV_VAR}/{data_type}"
92
  headers = {"Authorization": f"Bearer {bubble_api_key}"}
93
 
94
  constraints = [{"key": constraint_key, "constraint_type": constraint_type, "value": constraint_value}]