Skip to content

Instantly share code, notes, and snippets.

View bbezerra82's full-sized avatar

Bernardo Bezerra bbezerra82

View GitHub Profile
@bbezerra82
bbezerra82 / APLArrowDoc.json
Created January 28, 2021 08:17
Gist containing APL document to change orientation of arrow
{
"type": "APL",
"version": "1.4",
"settings": {},
"theme": "dark",
"import": [],
"resources": [],
"styles": {},
"onMount": [],
"graphics": {
@bbezerra82
bbezerra82 / Account Linking Configuration
Last active May 9, 2022 11:57
Account Linking Tutorial
web authorization URI: https://www.amazon.com/ap/oa
access token URI: https://api.amazon.com/auth/o2/token

Privacy Policy for Alexa Skill

This privacy policy describes how bbezerra_personal ("bbezerra_personal", "us" or "we") protects your ("you", "the user") privacy and your data. Before using any of our Alexa Skills, please read this policy and our Alexa Skills Terms of Use, as well as the Alexa Terms of Use and the privacy Policies by the Amazon DIgital Services LLC (with its affiliates, "Amazon").

Regarding Amazon, "Alexa" menas their Alexa Voice Service which includes third party services (like our skills) and other related Software.

If you use one of our skills you fully agree to this privacy policy.

General

When you use our skills you have to talk to Alexa. This voice input is sent to Amazon and us where we use it to understand what our skill should do for you. This is absolutely necessary for our service to give you an approriate answer.

@bbezerra82
bbezerra82 / loggingSnippet.js
Created June 25, 2020 15:40
code snippet for logging requests and responses
.addRequestInterceptors(function (handlerInput) {
const { requestEnvelope } = handlerInput;
const type = Alexa.getRequestType(requestEnvelope);
const locale = Alexa.getLocale(requestEnvelope);
if (type !== 'IntentRequest') {
console.log(`${type} (${locale})`);
} else {
console.log(`${requestEnvelope.request.intent.name} (${locale})`);
}
console.log(`\n********** REQUEST *********\n${JSON.stringify(handlerInput, null, 4)}`);
@bbezerra82
bbezerra82 / index.js
Last active February 13, 2020 09:08 — forked from germanviscuso/index.js
Quick code to support an intent that plays long form audio in an Alexa skill
var stream = {
"token": "my_token", // no auth token, you decide what this is
"url": 'https://my_song.mp3',
"metadata" : {
"title": "My Song Title",
"subtitle": "My Song Subtitle",
"art": {
"sources": [
{
"contentDescription": "image",