Skip to content

Instantly share code, notes, and snippets.

launch_arguments([
"-mode snapshot",
])
devices([
"iPhone 6s",
])
languages([
"en-US",
func main() {
listener := lyft.NewListener("...")
listener.RegisterHandler(handleArrived, lyft.RideStatusArrived)
http.HandleFunc("/", listener.Handler)
http.ListenAndServe(":3000", nil)
}
func handleArrived(e lyft.IncomingEvent) {
fmt.Printf("Your ride is here!")
}
func handleArrived(e lyft.IncomingEvent) {
// Turn off the lights only when I'm leaving my house
if fmt.Sprintf("%v", e.Event.Origin.Address) == "..." {
fmt.Printf("Your ride is here!")
_, err := http.Get("https://maker.ifttt.com/trigger/lyft_arrived/with/key/...")
if err != nil {
log.Fatal(err)
}
}

Keybase proof

I hereby claim:

  • I am vpolouchkine on github.
  • I am vvvv (https://keybase.io/vvvv) on keybase.
  • I have a public key whose fingerprint is 33D7 D906 FB6B 7A8D 49F4 C658 00A5 77AC 1758 C6B5

To claim this, I am signing this object:

/ridetypes:
get:
operationId: GetRideTypes
summary: Types of rides
description: >
The ride types endpoint returns information about what kinds of Lyft rides you can request at a given location.
parameters:
- $ref: '#/parameters/LatParam'
- $ref: '#/parameters/LngParam'
- $ref: '#/parameters/OptionalRideType'