Skip to content

Instantly share code, notes, and snippets.

@lbrenman
lbrenman / alexaapphandler.js
Last active July 19, 2022 21:56
Hello API Builder Alexa
var Arrow = require('arrow');
const verifier = require('alexa-verifier');
var launchTxt = "Welcome to Hello Axway Alexa Skill";
var AlexaAppHandler = Arrow.API.extend({
group: 'alexa',
path: '/api/alexaapphandler',
method: 'POST',
description: 'this is an api that shows how to handle requests from the Alexa Skill Voice server',
@lbrenman
lbrenman / Account.js
Last active July 2, 2022 15:28
Appcelerator Arrow Post Block to add GPS coordinates to the Salesforce Account
var Arrow = require("arrow");
var Model = Arrow.Model.reduce("appc.salesforce/Account","Account",{
"fields": {
"Name": {
"type": "string",
"description": "Account Name",
"readonly": false,
"maxlength": 255,
"required": true,
@lbrenman
lbrenman / index.js
Last active September 3, 2021 22:36
Titanium Local Notifications Example
function doClick(e) {
alert($.label.text);
}
$.index.open();
var alertFields = {
title: 'Notification', //Android Only
body : 'Just another notification',
badge: 1,
@lbrenman
lbrenman / _readme
Last active October 30, 2020 14:05
Appcelerator Titanium Hello Alloy Model
Hello Model
Models are useful for updating controls based on data updates. Without models when data changes you need to manually update every control that is associated with the data (e.g. label, tableVIew, …). By binding your controls to a model, you can simply update the model’s data and all the controls will be updated automatically.
Here are the steps for a basic model demo. For reference, the online docs are here:
http://docs.appcelerator.com/platform/latest/#!/guide/Alloy_Data_Binding-section-36739592_AlloyDataBinding-Model-ViewBinding
* Add model and select “properties”
@lbrenman
lbrenman / README.md
Last active June 3, 2020 01:26
Appcelerator Titanium PDF Viewer Demo 1 - If not already loaded, then retrieve PDF from web site and store in file system and view

#PDF Viewer demo - from web site URL

  1. check if PDF has been downloaded from web site and stored in file system
  2. if not, then retrieve from web site and store in file system and open
  • use docviewer on ios and exernal app (via intent) on android
  1. if so, then open pdf
  • use docviewer on ios and exernal app (via intent) on android

Note that Android, the file is stored in the externalStorageDirectory (SDCard) so deleting the application will not remove the pdf form the SDCard. Use a File Manager app (pn Android) to delete the file

@lbrenman
lbrenman / MOCK_DATA.js
Created August 13, 2016 02:04
Arrow - How to Populate Your Arrow Builder Project With Data
module.exports = {
data: [
{"Name":"Demivee","Type":"Prospect","Phone":"1-(818)173-8443"},
{"Name":"Shufflester","Type":"Prospect","Phone":"93-(232)869-5557"},
{"Name":"Voonte","Type":"Customer","Phone":"62-(269)473-1186"},
{"Name":"Thoughtsphere","Type":"Prospect","Phone":"86-(902)994-3017"},
{"Name":"Zoonder","Type":"Customer","Phone":"1-(202)358-2758"},
{"Name":"Flashspan","Type":"Customer","Phone":"57-(126)114-4912"},
{"Name":"Yoveo","Type":"Customer","Phone":"593-(320)380-5127"},
@lbrenman
lbrenman / IB Enable Step Execution Logging.md
Created September 20, 2019 21:50
Integration Builder - Enable Step Logging

Integration Builder - Enable Step Logging

By default, steps are not logged in order to improve flow execution performance. Only the trigger step will be visible as shown below:

So, how do I develop a flow if I can't see the step execution? Good question. Here is how:

  • Create a flow
  • Get the flow ID
@lbrenman
lbrenman / README.md
Created July 17, 2018 14:27
Amplify MyPO Alexa Skill for Syncplicity POs

Axway Alexa Sync PO

An Amazon Echo Skill that runs on API Builder and MBaaS and enables users to discover new POs in the PO syncpoint. These files (POs) must be manually uploaded (for now)

Currently Supports:

  • Reading all or new files since last check
  • Sending URL to file to the user's mobile phone

NOTE that the skill compares file dates on Syncplicity with time that the Echo user checked for POs last

@lbrenman
lbrenman / app.js
Last active August 16, 2019 03:03
Node.js example of accessing Axway/Appcelerator MBaaS (ArrowDB/ACS) - user and photo API
var fs = require('fs');
var ArrowDBAppKey_Dev = '<ACS DEV APP KEY>';
var ArrowDBAppKey_Prod = '<ACS PROD APP KEY>';
var ArrowDB = require('arrowdb'),
arrowDBApp = new ArrowDB(ArrowDBAppKey_Prod);
var loginParams = {
login: 'a',
password: '1234'
@lbrenman
lbrenman / Getting Started with AWS Amplify for Serverless Functions.md
Last active August 16, 2019 03:02
Getting Started with AWS Amplify for Serverless Functions

Getting Started with AWS Amplify for Serverless Functions

The Amplify Framework provides a set of libraries, UI components, and a command line interface to build a mobile backend and integrate with your iOS, Android, Web, and React Native apps.

This article will describe how to use Amplify to easily create serverless API's.

I'll follow this tutorial.

Installing & configuring the Amplify CLI