List all Actions of an APP
I would like to list the actions of an App via the SDK. see here: @router.get("/v0/actions/{app_name}", response_model=AvailableActionsResponse)
async def get_actions_by_app_name(app_name: str) -> AvailableActionsResponse:
try:
# Initialize the Composio client
composio_client = Composio()
# Convert app name to uppercase
app_name_upper = app_name.upper()
# Fetch available actions for the specified app name
available_actions = composio_client.actions.get(app=App.SHOPIFY)
# Structure the action information
action_info = [
ActionInfo(
name=action.name,
identifier=action.key,
description=action.description,
category=action.category,
logo=action.logo,
tool_type="composio",
) for action in available_actions
]
# Return the structured response
return AvailableActionsResponse(actions=action_info)
except HTTPException as http_ex:
# Re-raise HTTP exceptions to preserve status code and detail
raise http_ex
except Exception as e:
# Handle other exceptions and return a generic error response
raise HTTPException(status_code=500, detail="An unexpected error occurred.") i tried a few different styles of how i could write it but i never succeded, by the way is there a Documentation for the SDKs?
10 Replies
adverse-sapphire•2d ago
Is the issue happening again??
fascinating-indigoOP•17h ago
So we figurerd out how the get the actions
fascinating-indigoOP•17h ago
but we are struggeling with something else, for example if we want to connect to clickup we have the problem that it outputs this after trying to connect:
Hi Checking this!
fascinating-indigoOP•16h ago
Thank you very much
adverse-sapphire•15h ago
Hey @Lucas | CO-Head B-Bot | CTO - I just checked it on our end. Can you create a new integration and connect your account again?
fascinating-indigoOP•13h ago
Ok i will try immidiatly
i tried but i get the same error
adverse-sapphire•13h ago
weird - can we jump on a quick voice chat in the 30 minutes to debug this?
fascinating-indigoOP•12h ago
when will you be able to hop on a call tomorrow?
fascinating-indigoOP•12h ago