This project provides a web-based interface for interacting with the Broadworks OCIP API. It allows users to fetch and display various types of data including call logs, user login information, and detailed user information.
- Fetch and display user call logs (missed and received calls)
- Retrieve and show user login information
- Get detailed user information
- User-friendly web interface for easy data access
- Backend:
- Flask (Python)
- Broadworks OCIP API
- Frontend:
- Next.js (React)
- TypeScript
- Tailwind CSS
- shadcn/ui components
- Python 3.7+
- Node.js 14+
- npm or yarn
- Broadworks OCIP API credentials
-
Clone the repository:
git clone https://github.com/your-username/broadworks-ocip-interface.git cd broadworks-ocip-interface
-
Set up a Python virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required Python packages:
pip install -r requirements.txt
-
Create a
.env
file in the root directory and add your Broadworks OCIP API credentials:API_HOST=your_api_host API_PORT=your_api_port API_USERNAME=your_username API_PASSWORD=your_password
-
Navigate to the frontend directory:
cd frontend
-
Install the required npm packages:
npm install
-
Start the Flask backend server:
python app.py
-
In a new terminal, start the Next.js frontend:
cd frontend npm run dev
-
Open your browser and navigate to
http://localhost:3000
to use the application.
- Select the desired function from the dropdown menu:
- Call Logs
- User Login Info
- User Details
- Enter the User ID in the input field.
- Click "Fetch Data" to retrieve and display the information.
/call-logs
: Fetches user call logs/user-login-info
: Retrieves user login information/user-get
: Gets detailed user information
Contributions are welcome! Please feel free to submit a Pull Request.
- Broadworks OCIP API documentation
- Flask documentation
- Next.js documentation
- shadcn/ui component library