calls

package
v0.0.0-...-341ae86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallHandler

func CallHandler(w http.ResponseWriter, r *http.Request)

* TODO: verify requests are really from Twilio (https://godoc.org/github.com/kevinburke/twilio-go#GetExpectedTwilioSignature)

func NewClient

func NewClient() *airtable.Client

func RecordingHandler

func RecordingHandler(w http.ResponseWriter, r *http.Request)

func TranscriptionHandler

func TranscriptionHandler(w http.ResponseWriter, r *http.Request)

Types

type Inbound

type Inbound struct {
	airtable.Record
	Fields InboundFields
}

type InboundFields

type InboundFields struct {
	Number        string `json:"Phone number"`
	Recording     string `json:"Recording"`
	Transcription string `json:"Transcription"`
	TwilioID      string `json:"Twilio ID"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL