This file documents a sample node-red flow that can be imported into node-red or AT&T flow Designer or IBM Bluemix and illustrates a sample
flow that involves obtaining the appropriate OAUTH credentials, making a sample call and also subscribing/processing a call direction flow
More details can be found at the website below
http://foundry.att.net/index.php/oauth-token/
http://foundry.att.net/index.php/apis/call-control/
http://foundry.att.net/index.php/apis/call-direction/
Paste the flow.json using Import->From ClipBoard and then modify the globals
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 random | |
import ssl | |
import websockets | |
import asyncio | |
import os | |
import sys | |
import json | |
import argparse | |
import string | |
from websockets.exceptions import ConnectionClosed |