Skip to main content

A Python client library for the Follow Up Boss API

Project description

Follow Up Boss API Client

A comprehensive Python client library for the Follow Up Boss API, providing easy access to all Follow Up Boss endpoints with full type safety and thorough documentation.

Features

  • Complete API Coverage: Support for all Follow Up Boss API endpoints
  • Type Safety: Full type hints throughout the library
  • Easy to Use: Simple, intuitive interface
  • Well Documented: Comprehensive docstrings and examples
  • Async Support: Built with modern Python async/await patterns
  • Error Handling: Robust error handling and validation
  • Extensible: Easy to extend for custom use cases

Installation

pip install follow-up-boss

Quick Start

from follow_up_boss import FollowUpBossApiClient

# Initialize the client
client = FollowUpBossApiClient(
    api_key="your_api_key",
    x_system="Your-System-Name",
    x_system_key="your_system_key"
)

# Get all people
people = client.people.get_all()

# Create a new person
new_person = client.people.create({
    "name": "John Doe",
    "email": "john@example.com",
    "phone": "555-123-4567"
})

# Update a person
updated_person = client.people.update(person_id, {
    "name": "John Smith"
})

# Delete a person
client.people.delete(person_id)

Environment Variables

You can also configure the client using environment variables:

FOLLOW_UP_BOSS_API_KEY=your_api_key
X_SYSTEM=Your-System-Name
X_SYSTEM_KEY=your_system_key
from follow_up_boss import FollowUpBossApiClient

# Client will automatically use environment variables
client = FollowUpBossApiClient()

API Resources

The client provides access to all Follow Up Boss API resources:

Core Resources

  • People: Manage contacts and leads
  • Deals: Track real estate transactions
  • Events: Handle activities and interactions
  • Tasks: Manage todo items and follow-ups
  • Notes: Add and retrieve notes
  • Appointments: Schedule and manage appointments

Communication

  • Text Messages: Send and receive SMS
  • Email Templates: Manage email templates
  • Text Message Templates: Manage SMS templates
  • Webhooks: Configure webhook endpoints
  • Reactions: Handle message reactions

Organization

  • Teams: Manage team structures
  • Users: Handle user accounts
  • Groups: Organize contacts into groups
  • Pipelines: Manage sales pipelines
  • Stages: Configure pipeline stages
  • Smart Lists: Dynamic contact lists

Configuration

  • Custom Fields: Define custom data fields
  • Action Plans: Automated workflow templates
  • Appointment Types: Configure appointment categories
  • Appointment Outcomes: Track appointment results

Attachments & Files

  • Person Attachments: File attachments for contacts
  • Deal Attachments: File attachments for deals

Advanced Usage

Error Handling

from follow_up_boss import FollowUpBossApiClient
from follow_up_boss.exceptions import ApiError, AuthenticationError

try:
    client = FollowUpBossApiClient(api_key="invalid_key")
    people = client.people.get_all()
except AuthenticationError:
    print("Invalid API credentials")
except ApiError as e:
    print(f"API Error: {e}")

Pagination

# Get all people with pagination
all_people = []
page = 1

while True:
    response = client.people.get_all(page=page, limit=100)
    people = response.get('people', [])
    
    if not people:
        break
        
    all_people.extend(people)
    page += 1

Custom Headers

# Add custom headers to requests
client = FollowUpBossApiClient(
    api_key="your_key",
    custom_headers={
        "X-Custom-Header": "custom_value"
    }
)

Development

Setup

git clone https://github.com/theperrygroup/follow-up-boss.git
cd follow-up-boss
pip install -e ".[dev]"

Running Tests

pytest

Code Formatting

black follow_up_boss tests
isort follow_up_boss tests

Type Checking

mypy follow_up_boss

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for your changes
  5. Ensure all tests pass (pytest)
  6. Format your code (black and isort)
  7. Commit your changes (git commit -m 'Add amazing feature')
  8. Push to the branch (git push origin feature/amazing-feature)
  9. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For questions, issues, or feature requests, please:

  1. Check the documentation
  2. Search existing issues
  3. Create a new issue if needed

Changelog

Version 0.1.1

Version 0.1.0

  • Initial release
  • Complete API coverage for all Follow Up Boss endpoints
  • Full type safety with comprehensive type hints
  • Comprehensive test suite
  • Documentation and examples

Related Projects


Made with ❤️ by The Perry Group

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

follow_up_boss-0.1.1.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

follow_up_boss-0.1.1-py3-none-any.whl (55.7 kB view details)

Uploaded Python 3

File details

Details for the file follow_up_boss-0.1.1.tar.gz.

File metadata

  • Download URL: follow_up_boss-0.1.1.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for follow_up_boss-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0ee7b43fb320e3959d8a31c226f2af724001062d038871015a6302f62930dbcf
MD5 469d27e4c418442350732ca3b982a7c5
BLAKE2b-256 dc794a8bdc9e1bad53a7fd2fc6d125cb81a4621648ffa1e8433a108defbaf1ec

See more details on using hashes here.

File details

Details for the file follow_up_boss-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: follow_up_boss-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 55.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for follow_up_boss-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 77a1908013beeabd8d9972e55be54018acec98a54d5aa6f93d53720349223bbb
MD5 5012a637ca8bfffcfc9f488fe3fa3965
BLAKE2b-256 f2ae9e7d83f2dbf9498c878250e5dad27f68ac6781a8277e0800d89cdf89799f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page