Flecto
    Flecto
    • Activities
    • Timestamps
    • Flecto AI
      • Flecto AI
      • Hint item categories
        GET
      • Generate item category description
        GET
      • Generate item description
        GET
      • Classify insurance item
        GET
      • Generate product photos
        GET
      • Generate bundle description
        GET
    • Services
      • Get image upload url
        POST
      • Get document upload url
        POST
    • Integrations - Email Validate
      • Validation email
        GET
    • Integrations - Google Calendar
      • Google Calendar Integration
      • Create google calendar id
        POST
      • Delete google calendar
        DELETE
    • Me
      • Gets current logged in user
        GET
      • Update current logged in user attributes
        PUT
    • Me - Addresses
      • Get all user addresses
        GET
      • Create user address
        POST
      • Get user address
        GET
      • Delete user address
        DELETE
      • Update user address
        PATCH
    • Me - Identities
      • Get user identities
        GET
      • Change main identity
        POST
      • send email for recovery password
        POST
      • Get user identities
        GET
      • delete auth0 user
        DELETE
      • Update identity
        PUT
    • Me - Subscription
      • Get user subscription
    • Me - Tax Profiles
      • Get current user tax profile
      • Update current user tax profile
    • Me - Verification
      • Verify phone number
      • Check ongoing phone number verify
    • User - Bookings Settings
      • Gets current owner bookings settings
      • Update user booking settings
    • Business Categories
      • Get business categories
    • SaaS - Bookings
      • Creates a booking
      • Index all bookings
      • Updates booking
      • Show details of one booking
      • Delete booking
      • Update booking document
    • SaaS - Booking Availability
      • Checks item availability for all items within booking
    • SaaS - Booking Customers
      • Shows booking customer
      • Update booking customer
    • SaaS - Booking Documents
      • Shows all booking documents
      • Creates a booking document
      • Shows booking document
      • Destroy booking document
      • Updates a booking document
      • Quote preview
      • Contract preview
      • Proforma preview
      • Generates a PDF for a booking
      • Generates a contract PDF for a booking
      • Generates a PDF for a booking
    • SaaS - Booking Items
      • Booking items
      • Add a new booking item
      • Booking item
      • Remove a booking item
      • Update booking item
    • SaaS - Booking Payments
      • Shows all booking payment
      • Creates a booking payment
      • Shows booking payment
      • Destroy booking payment
      • Updates a booking payment
    • SaaS - Booking Status
      • Negotiate booking
      • Reserve booking
      • Cancel a booking
      • Halts booking negotiation
      • Unreserve booking
      • Halts ongoing negotiation
      • Reverts completed booking
      • Undo cancelled booking
      • Send booking customer email
    • SaaS - Bundles
      • Get items
      • Create bundle
      • Get bundle
      • Delete bundle
      • Update bundle
    • SaaS - Bundles Items
      • Get bundle items
      • Create bundle item
      • Get bundle items
      • Update bundle item
      • Delete bundle item
    • SaaS - Chargebee
      • Posts callback from Chargebee
    • SaaS - Customers
      • Creates a customer
      • List customers
      • Get customer
      • Delete customer
      • Updates customer
    • SaaS - Customer Addresses
      • List customer addresses
      • Creates a customer addresses
      • Delete address
      • Update address
    • SaaS - Inquiry Customers
      • Create customer from inquiry
    • SaaS - Inquiry Status
      • Unreject inquiry
      • Unapprove inquiry
      • Rejects inquiry
      • Approve inquiry
    • SaaS - Items
      • Get item category
      • Get item
      • Delete items
      • Update item
      • Add item
      • Get items
      • Estimate insurance for item
      • Get items
    • SaaS - Item Photos
      • Delete item photo
      • Get item photo
      • Get all item photos
      • Create item photo
    • SaaS - Links
      • Show object details
    • SaaS - Inquiries
      • Show details of one inquiry
      • Shows specific owner inquiry
      • Shows all the owner inquiries
    • SaaS - Insurances
      • Create insurances for booking
      • Cancels bookings insurances
      • List all bookings insurances
      • Cancel insurance
      • Show booking insurance
      • Show booking insurance status
      • Get insurance
      • Update insurance
      • Get Insurance Quote for booking
      • Create insurance
      • List all insurances
    • SaaS - Products
      • Get item
      • Checks item availability for booking
      • Estimate insurance for item
      • Checks availability for all items
    • Store - Inquiries
      • Creates an inquiry
    • Links - Booking Documents
      • Show documents of one booking
      • Show document
      • Update documents of one booking
    • Links - Bookings
      • Show details of one booking
    • SaaS - Store
      • Get store
      • Update store
    • Store
      • Gets store details
    • Me - Item Categories
      • List all item categories
      • Create item category
      • Move item category
      • Get item category
      • Update item category
      • Delete item category
    • Store - Item Categories
      • List item categories
      • Show item category
    • Store - Products
      • Get item
      • Get item category
      • Get all item photos
      • Get all item photos
      • Checks item availability for booking
      • List item
      • Checks availability for all items
    • Me - Onboarding
      • Onboards a new user
    • SaaS - Booking Services
      • Shows all booking services
      • create a booking service
      • Shows booking service
      • Update booking service
    • SaaS - Product Status
      • Enable item
      • Disable item

    Integrations - Google Calendar

    Description#

    Users with a google social identity are able to sync their bookings with their google calendar.

    Parameters#

    Authorization: Bearer token for authentication.
    Auth0-IdToken: Auth0 ID token for authentication.
    auth0_id: Path parameter containing the auth0_id of the google account to be linked/unlinked.

    Endpoints#

    POST /api/me/identities/{auth0_id}/google_calendar#

    Description#

    Sets the identity as main google calendar identity, then creates a new calendar and syncronizes bookings with status [:reserved, :ongoing :completed] into Google Calendar.

    Example Request#

    Example Response#

    {
      "data": {
        "id": "<ID>",
        "type": "user_identity",
        "attributes": {
          "auth0_id": "<AUTH0_ID>",
          "provider": "google-oauth2",
          "email": "<EMAIL>",
          "social": true,
          "id": "<ID>",
          "email_verified": true
        },
        "meta": {
          "google_calendar_enabled": true
        }
      }
    }

    DELETE /api/me/identities/{auth0_id}/google_calendar#

    Description#

    Removes all Google Calendar event ids from bookings and deletes the calendar from google.

    Parameters#

    Example Request#

    Example Response#

    {
      "data": {
        "id": "<ID>",
        "type": "user_identity",
        "attributes": {
          "auth0_id": "<AUTH0_ID>",
          "provider": "google-oauth2",
          "email": "<EMAIL>",
          "social": true,
          "id": "<ID>",
          "email_verified": true
        },
        "meta": {
          "google_calendar_enabled": false
        }
      }
    }
    Modified at 2024-10-22 18:02:52
    Previous
    Validation email
    Next
    Google Calendar Integration
    Built with