This file contains hidden or 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
const Nexmo = require( 'nexmo' ); | |
const apiKey = "yourApiKey"; | |
const apiSecret = "yourApiSecret"; | |
const nexmo = new Nexmo( { | |
apiKey, | |
apiSecret, | |
} ); | |
nexmo.message.sendSms('Nexmo test','440000000', 'Your message', {callback: 'https://enrico.com/status/adjni3'}, | |
function (err, res ){ |
This file contains hidden or 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 React, { Component } from 'react'; | |
import { Text, SafeAreaView, View } from 'react-native'; | |
import { OTSession, OTPublisher, OTSubscriber, OT } from 'opentok-react-native'; | |
import {VideoStats} from './networkTestHelper'; | |
export default class App extends Component { | |
constructor( props ) { | |
super( props ); | |
this.apiKey = ''; | |
this.sessionId = ''; |
This file contains hidden or 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
package com.tokbox.android.tutorials.basic_video_chat; | |
import android.opengl.GLSurfaceView; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.annotation.NonNull; | |
import android.Manifest; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.FrameLayout; | |
import android.app.AlertDialog; |
This file contains hidden or 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Hello Function", | |
"program": "${workspaceFolder}/node_modules/.bin/sls", | |
"args": ["invoke", "local", "-f", "hello", "--data", "{}"], | |
"preLaunchTask": "tsc: build - tsconfig.json", | |
"outFiles": [ |
This file contains hidden or 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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */, | |
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, | |
"sourceMap": true /* Generates corresponding '.map' file. */, | |
"outDir": ".build" /* Redirect output structure to the directory. */, | |
"strict": true /* Enable all strict type-checking options. */, | |
"rootDir": "./" /* List of root folders whose combined content represents the structure of the project at runtime. */, | |
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ | |
} |
This file contains hidden or 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 React, { Component } from 'react'; | |
import { View, Button } from 'react-native'; | |
import { OTSession, OTPublisher, OTSubscriber } from 'opentok-react-native'; | |
export default class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
show: false | |
} |
This file contains hidden or 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
<!-- index.html --> | |
<html> | |
<body> | |
<!-- container for rendered React element --> | |
<div id="root"></div> | |
<!-- Require.js --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.2/require.min.js"></script> | |
<!-- main --> |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:CreateFunction", | |
"lambda:ListVersionsByFunction", | |
"dynamodb:DeleteItem", |
This file contains hidden or 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
"nluResponse": { | |
"debug": null, | |
"input": "hi", | |
"result": { | |
"action": "welcome", | |
"intent_on_hold": "", | |
"completion_attempts": 0, | |
"contexts": [], | |
"dialog_complete": true, | |
"intent": "welcome message", |
This file contains hidden or 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 React, { Component } from 'react'; | |
import { View } from 'react-native'; | |
import { OTSession, OTPublisher, OTSubscriber } from 'opentok-react-native'; | |
export default class App extends Component { | |
constructor(props) { | |
super(props); | |
this.apiKey = ''; | |
this.sessionId = ''; | |
this.token = ''; |