Skip to content

Instantly share code, notes, and snippets.

// import angular from 'angular';
const DEBUG = require('../../common/Debug')('signup.controller'); //eslint-disable-line
class CartController {
constructor(
$http,
$localStorage,
$q,
$rootScope,
$scope,
$state,

Compose Init

  1. Documents user$ mkdir twilio-php-app

  2. Documents user$ cd twilio-php-app

  3. twilio-php-app user$ composer init --name=user/twilio-app --require=twilio/sdk

Package name (<vendor>/<name>) [user/twilio-app]:
Description []:

Middleware

var twilio = require('twilio');
// You can find your Twilio Auth Token here: https://www.twilio.com/console
// Which can be set at runtime as follows:
// $ TWILIO_AUTH_TOKEN=XXXXXXXXXXXXXXXXXXX node index.js
var TWILIO_AUTH_TOKEN = process.env.TWILIO_AUTH_TOKEN

function validateTwilioRequest() {
  var routes = Array.prototype.slice.call(arguments);

Example Controller

import { Request, Response } from 'express';
import MessageSender form '../Services/MessageSender';

/**
 * Example controller that provides a healthcheck endpoint
 */
module Example {
#!/usr/bin/env bash
# example)
# ./phpunit-watch src/ tests/ -c tests/ --colors
set -e
set -u
function usage
{

New At Station Exposure Type

Screenshot from 2020-01-13 09-47-54

An AtStationExposure should be created by selecting it here:

screenshot

Inline

screenshot (1)