This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Optimizely | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
// Build OptimizelyClient | |
let optimizely = OptimizelyClient(sdkKey: "REPLACE_WITH_SDK_KEY", periodicDownloadInterval: 30) | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Local Accounts table | |
RESULT=$(aws dynamodb describe-table \ | |
--region us-east-1 \ | |
--endpoint-url $DYNAMODB_ENDPOINT \ | |
--table-name test_Accounts) | |
CODE=$? | |
if [ $? -eq 0 ]; then | |
aws dynamodb delete-table \ | |
--region us-east-1 \ | |
--endpoint-url $DYNAMODB_ENDPOINT \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XeroDataHelper.prototype.formatOrgName = function(orgName) { | |
if (orgName) { | |
return `You are currently connected to the Zero Organisation: ${orgName}. To get a status report for this organisation, say: weekly status report.`; | |
} else { | |
return "There was an issue getting the name of your Zero organisation. Please link your account using the Alexa app and try again." | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get Current Connected Xero Org | |
*/ | |
app.intent('getOrgName', { | |
'slots': {}, | |
'utterances': ['{which|what} {|zero} {org|organisation|account|company|file} {|am I} {connected|attached|looking} {|at|to|on|in}'], | |
}, function(req, res) { | |
return checkSession(req) | |
.then(function(xeroDataHelper) { | |
return xeroDataHelper.getOrgName() |
NewerOlder