|
10 | 10 | @app_business_reviews.action("search_apps_ios") |
11 | 11 | class SearchAppsIOS(ActionHandler): |
12 | 12 | async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
13 | | - api_key = context.auth.get("credentials", {}).get("api_key", {}) |
| 13 | + api_key = context.auth.get("credentials", {}).get("api_key", "") |
14 | 14 |
|
15 | 15 | # Build SerpApi request parameters for app search |
16 | 16 | params = {"api_key": api_key, "engine": "apple_app_store", "term": inputs["term"]} |
@@ -54,7 +54,7 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
54 | 54 | @app_business_reviews.action("get_reviews_app_store") |
55 | 55 | class GetReviewsAppStore(ActionHandler): |
56 | 56 | async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
57 | | - api_key = context.auth.get("credentials", {}).get("api_key", {}) |
| 57 | + api_key = context.auth.get("credentials", {}).get("api_key", "") |
58 | 58 |
|
59 | 59 | # Get product_id - either provided directly or search by app name |
60 | 60 | product_id = inputs.get("product_id") |
@@ -160,7 +160,7 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
160 | 160 | @app_business_reviews.action("search_apps_android") |
161 | 161 | class SearchAppsAndroid(ActionHandler): |
162 | 162 | async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
163 | | - api_key = context.auth.get("credentials", {}).get("api_key", {}) |
| 163 | + api_key = context.auth.get("credentials", {}).get("api_key", "") |
164 | 164 |
|
165 | 165 | # Build SerpApi request parameters for app search |
166 | 166 | params = {"api_key": api_key, "engine": "google_play", "store": "apps", "q": inputs["query"]} |
@@ -198,7 +198,7 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
198 | 198 | @app_business_reviews.action("get_reviews_google_play") |
199 | 199 | class GetReviewsGooglePlay(ActionHandler): |
200 | 200 | async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
201 | | - api_key = context.auth.get("credentials", {}).get("api_key", {}) |
| 201 | + api_key = context.auth.get("credentials", {}).get("api_key", "") |
202 | 202 |
|
203 | 203 | # Get product_id - either provided directly or search by app name |
204 | 204 | product_id = inputs.get("product_id") |
@@ -315,7 +315,7 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
315 | 315 | @app_business_reviews.action("search_places_google_maps") |
316 | 316 | class SearchPlacesGoogleMaps(ActionHandler): |
317 | 317 | async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
318 | | - api_key = context.auth.get("credentials", {}).get("api_key", {}) |
| 318 | + api_key = context.auth.get("credentials", {}).get("api_key", "") |
319 | 319 |
|
320 | 320 | # Build SerpApi request parameters for place search |
321 | 321 | query_string = inputs["query"] |
@@ -353,7 +353,7 @@ async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
353 | 353 | @app_business_reviews.action("get_reviews_google_maps") |
354 | 354 | class GetReviewsGoogleMaps(ActionHandler): |
355 | 355 | async def execute(self, inputs: Dict[str, Any], context: ExecutionContext): |
356 | | - api_key = context.auth.get("credentials", {}).get("api_key", {}) |
| 356 | + api_key = context.auth.get("credentials", {}).get("api_key", "") |
357 | 357 |
|
358 | 358 | # Get place_id and data_id - either provided directly or search by business name |
359 | 359 | place_id = inputs.get("place_id") |
|
0 commit comments