Skip to content

milobella/ability-cinema

Repository files navigation

Cinema Ability

Milobella Ability to know about series & movies.

Features

  • See what is coming out or soon in your favorite theater;
  • Manage your favorite theater.

Prerequisites

Build

$ go build -o bin/ability cmd/ability/main.go

Run

$ bin/ability

Requests example

Get the movies for this evening in favorite theater.

$ curl -i -H "Content-Type":"application/json" -X POST http://localhost:4444/resolve -d '{"nlu":{"BestIntent": "LAST_SHOWTIME"}}'
HTTP/1.1 200 OK
Date: Sat, 01 Jun 2019 09:17:16 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked

{
	"nlg": {
		"sentence": "Here are the movies in {{theater}} this evening, in the {{location}}'s theater",
		"params": [{
			"name": "theater",
			"value": "La Strada",
			"type": "string"
		}, {
			"name": "location",
			"value": "Mouans-Sartoux",
			"type": "string"
		}]
	},
	"visu": [{
		"title": "\"Toy Story 4\"",
		"display": "\"Séances du dimanche 23 juin 2019 : 11:00 (film à 11:10)\""
	}, ... ]
}