Flecto
    • Activities
    • Timestamps
    • Flecto AI
      • Flecto AI
      • Hint item categories
        GET
      • Classify insurance item
        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 - 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
        GET
      • Get user subscription plan
        GET
    • Me - Tax Profiles
      • Get current user tax profile
        GET
      • Update current user tax profile
        PUT
    • Business Categories
      • Get business categories
    • SaaS - Bookings
      • Creates a booking
      • Index all bookings
      • Updates booking
      • Show details of one booking
      • Delete booking
    • SaaS - Booking Availability
      • Checks product availability for all items within booking
    • SaaS - Booking Customers
      • Shows booking customer
      • Update booking customer
    • SaaS - Booking Items
      • Check booking product availability
      • 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
      • Turns taxable off for all booking products
      • Turns taxable on for all booking products
      • Negotiate booking
      • Reserve booking
      • Cancel a booking
      • Halts booking negotiation
      • Unreserve booking
      • Halts ongoing negotiation
      • Reverts completed booking
      • Undo cancelled booking
    • SaaS - Bundles
      • Get items
      • Create bundle
      • Get bundle
      • Update bundle
      • Delete 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 - Items
      • Get item category
      • Get item
      • Delete items
      • Update item
      • Add item
      • Get items
      • Get items
    • SaaS - Insurances
      • Create insurances for booking
      • Cancels bookings insurances
      • List all bookings insurances
      • Get insurance stats
      • Show booking insurance
      • Show booking insurance status
      • Get Insurance Quote for booking
    • SaaS - Products
      • Get item
      • Checks product availability for booking
      • Checks availability for all items
    • Me - Onboarding
      • Onboards a new user
    • SaaS - Booking Services
      • Shows all booking services
      • create a booking service
      • Delete booking service
      • Shows booking service
      • Update booking service
    • SaaS - Product Status
      • Enable Product
      • Disable Product
    • Org - Insurance Claims
      • Get claim
      • Get claim
      • Create claim
      • List all claims
    • Org - Insurance Documents
      • Contract preview
      • Shows all insurance documents
      • Creates a insurance document
      • Generates a contract PDF for an insurance
      • Shows insurance document
      • Destroy insurance document
      • Updates a insurance document
    • Org - Insurances
      • Preview insurance from document
      • Previews insurance for extending a policy
      • Cancel insurance
      • Get insurance
      • Update insurance
      • Get insurance Quote for extending a policy
      • Extend insurance
      • Create insurance
      • List all insurances
    • Org - Insurance Claim Documents
      • List claim documents
      • Create claim document
      • Get claim document
      • Delete claim document
    • Org - Contracts
      • Add insurances to contract
      • Show contract
      • Update contract
      • Create contract
      • List contracts
    • Org - Customer Addresses
      • List customer addresses
      • Creates a customer addresses
      • Delete address
      • Update address
    • Org - Insurance Emails
      • Send insurance customer email
    • Org - Item Categories
      • List all item categories
      • Create item category
      • Move item category
      • Get item category
      • Update item category
      • Delete item category
    • Org - Item Documents
      • Shows all item documents
      • Creates an item document
      • Shows item document
      • Destroy item document
      • Updates a item document
    • Org - Items
      • Batch quote insurance for multiple items
      • Estimate insurance for item
    • Org - Addresses
      • Get all user addresses
      • Create user address
      • Get user address
      • Delete user address
      • Update user address
    • Org - Customers
      • Creates a customer
      • List customers
      • Get customer
      • Delete customer
      • Updates customer
    • SaaS - Booking Products
      • Batch update booking products
    • Org - Documents
      • Update document
    • Schemas
      • date_string
      • document_metadata
      • contract_update
      • item_document_create
      • item_document_update
      • insurance_extend
      • insurance_update
      • insurance_claim_create
      • insurance_claim_document_create
      • tax_profile_update
      • bundle_item_create
      • bundle_item_update
      • booking_service_create
      • insurance_send_email
      • onboarding
      • item_category_create
      • item_category_update
      • booking_payment_create
      • booking_payment_update
      • booking_service_update
      • customer_address_create
      • insurance_document_update
      • insurance_document_pdf_create
      • customer_address_update
      • booking_product_update
      • insurance_create
      • insurance_document_create
      • bundle_create
      • bundle_update
      • batch_quote
      • user_update
      • contract_create
      • contract_add_insurances
      • customer_create
      • customer_update
      • booking_update
      • booking_product_create
      • booking_product_batch
      • item_create
      • item_update
      • booking_create
      • org_address_create
      • org_address_update

    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