Skip to content

Instantly share code, notes, and snippets.

@rmtuckerphx
Created May 4, 2022 21:58
Show Gist options
  • Save rmtuckerphx/37fb9885a942ca08c962c61a6819bba8 to your computer and use it in GitHub Desktop.
Save rmtuckerphx/37fb9885a942ca08c962c61a6819bba8 to your computer and use it in GitHub Desktop.
Connections.StartConnection
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.AddToShoppingCart/1",
"input": {
"products": [
{
"asin": "B01962MDHA"
}
]
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.AskForPermissionsConsent/2",
"input": {
"@type": "AskForPermissionsConsentRequest",
"@version": "2",
"permissionScopes": [
{
"permissionScope": "<permission scope>", // Such as alexa::profile:name:read
"consentLevel": "ACCOUNT" // Or PERSON
},
{
"permissionScope": "<another permission scope>", // Such as alexa::devices:all:geolocation:read
"consentLevel": "ACCOUNT" // Or PERSON
},
...
]
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.BuyShoppingProducts/1",
"input": {
"products": [
{
"asin": "B01962MDHA"
}
]
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.LinkApp/2",
"input": {
"links": {
"IOS_APP_STORE": {
"primary": {
"UNIVERSAL_LINK": {
"appIdentifier": "id123456789",
"url": "https://www.cityguide.com/search/search_terms=coffee"
}
}
},
"GOOGLE_PLAY_STORE": {
"primary": {
"UNIVERSAL_LINK": {
"appIdentifier": "com.cityguide.app",
"url": "https://www.cityguide.com/search/search_terms=coffee"
}
}
}
},
"prompt": {
"topic": "see your search results",
"directLaunchDefaultPromptBehavior": "SPEAK"
}
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.PrintImage/1",
"input": {
"@type": "PrintImageRequest",
"@version": "1",
"title": "Flywheel Document",
"description": "Flywheel",
"imageType": "JPEG",
"url": "http://www.example.com/flywheel.jpeg"
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.PrintPDF/1",
"input": {
"@type": "PrintPDFRequest",
"@version": "1",
"title": "title",
"description": "description",
"url": "http://www.example.com/my.pdf"
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.PrintWebPage/1",
"input": {
"@type": "PrintWebPageRequest",
"@version": "1",
"title": "title",
"description": "description",
"url": "http://www.example.com/flywheel.html"
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.ScheduleFoodEstablishmentReservation/1",
"input": {
"@type": "ScheduleFoodEstablishmentReservationRequest",
"@version": "1",
"startTime": "2018-04-08T01:15:46Z",
"partySize": 2,
"restaurant": {
"@type": "Restaurant",
"@version": "1",
"name": "Amazon Day 1 Restaurant",
"location": {
"@type": "PostalAddress",
"@version": "1",
"streetAddress": "2121 7th Avenue",
"locality": "Seattle",
"region": "WA",
"postalCode": "98121",
"country": "US"
}
}
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.ScheduleTaxiReservation/1",
"input": {
"@type": "ScheduleTaxiReservationRequest",
"@version": "1",
"partySize": 4,
"pickupLocation": {
"@type": "PostalAddress",
"@version": "1",
"streetAddress": "415 106th Ave NE",
"locality": "Bellevue",
"region": "WA",
"postalCode": "98004",
"country": "US"
},
"pickupTime": null,
"dropoffLocation": {
"@type": "PostalAddress",
"@version": "v",
"streetAddress": "2031 6th Ave.",
"locality": "Seattle",
"region": "WA",
"postalCode": "98121",
"country": "US"
}
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.TestStatusCode/1",
"input": {
"code": "404"
},
"token": "example-token"
}
{
"type": "Connections.StartConnection",
"uri": "connection://AMAZON.VerifyPerson/2",
"input": {
"requestedAuthenticationConfidenceLevel": {
"level": 400,
"customPolicy": {
"policyName": "VOICE_PIN"
}
}
},
"token": "example-token"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment