Node.js API Client
The Buzzy API Node.js client provides a convenient way to interact with the Buzzy REST API from Node.js applications. This client handles authentication, request formatting, and response parsing, making it easier to use the API.
Installation
Usage
API Reference
login
Logs in a user and retrieves authentication token and user ID.
Parameters:
url
(string): The base URL of your Buzzy instanceemail
(string): The user's emailpassword
(string): The user's password
Returns:
Promise resolving to
{ token, userId }
getUserID
Finds a user ID based on an email address.
Parameters:
authToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instanceemail
(string): The email to look up
Returns:
Promise resolving to an object containing the user ID
insertMicroAppRow
Inserts a new row into a specified MicroApp.
Parameters:
microAppID
(string): The ID of the MicroAppauthToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instancerowData
(object): The data to insertembeddingRowID
(string, optional): The ID of the embedding rowviewers
(array, optional): Array of user IDs who can view this rowuserID
(string, optional): The ID of the creator
Returns:
Promise resolving to an object containing the inserted row ID
getMicroAppData
Retrieves data from a specified MicroApp.
Parameters:
microAppID
(string): The ID of the MicroAppauthToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instanceoptSearchFilters
(object, optional): Optional search filterssearchFilter
(object, optional): Primary search filteroptViewFilters
(object, optional): Optional view filtersoptIsVectorSearch
(boolean, optional): Whether to use vector searchoptVectorSearchString
(string, optional): Vector search stringoptLimit
(number, optional): Number of results to return
Returns:
Promise resolving to an array of rows
getMicroAppDataRow
Retrieves a specific row from a MicroApp.
Parameters:
rowID
(string): The ID of the rowauthToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instance
Returns:
Promise resolving to the row data
removeMicroAppRow
Removes a specific row from a MicroApp.
Parameters:
rowID
(string): The ID of the row to removeauthToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instance
Returns:
Promise resolving to the operation result
updateMicroAppDataRow
Updates a specific row in a MicroApp.
Parameters:
rowID
(string): The ID of the row to updateauthToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instancerowData
(object): The new data for the rowcreatorID
(string, optional): The ID of the creator
Returns:
Promise resolving to a boolean indicating success
insertOrganization
Creates a new organization.
Parameters:
authToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instanceorganizationInfo
(object): Information about the organization
Returns:
Promise resolving to the operation result
insertTeam
Creates a new team within an organization.
Parameters:
authToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instanceteamInfo
(object): Information about the teamadminID
(string, optional): The ID of the admin user
Returns:
Promise resolving to the operation result
insertTeamMembers
Adds members to teams.
Parameters:
authToken
(string): Authentication tokenuserId
(string): User ID of the requesting userurl
(string): The base URL of your Buzzy instanceteamIDs
(array): Array of team IDsemails
(array, optional): Array of user emailsuserIDs
(array, optional): Array of user IDstargetInitialApp
(string, optional): Initial app for new userstargetInitialScreen
(string, optional): Initial screen for new userstargetRoute
(string, optional): Route for new users
Returns:
Promise resolving to the operation result
Last updated