Python API Reference
Clarifai Python SDK API Reference
This is the API Reference documentation extracted from the source code.
User
class User(user_id=None, base_url="https://api.clarifai.com", pat=None, token=None, root_certificates_path=None, **kwargs)
User is a class that provides access to Clarifai API endpoints related to user information.
Parameters:
user_id
(str) - The user ID for the user to interact withbase_url
(str) - Base API url. Default "https://api.clarifai.com"pat
(str) - A personal access token for authentication. Can be set as env var CLARIFAI_PATtoken
(str) - A session token for authentication. Can be set as env var CLARIFAI_SESSION_TOKENroot_certificates_path
(str) - Path to the SSL root certificates file**kwargs
- Additional keyword arguments
User.app
User.app(app_id, **kwargs)
Returns an App object for the specified app ID.
Parameters:
app_id
(str) - The app ID for the app to interact with**kwargs
- Additional keyword arguments
Returns:
- App: An App object for the specified app ID
Example:
from clarifai.client.user import User
app = User("user_id").app("app_id")