devnet express - spark & tropo api - lisbon may 2016

150
Stève Sfartz, API evangelist @CiscoDevNet twitter://@SteveSfartz, github://@ObjectIsAdvantag DevNet Express Lisbon, May 11th 2016 Catalyzing Digital Transformations by leveraging CISCO APIs

Upload: cisco-devnet

Post on 08-Jan-2017

605 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: DevNet Express - Spark & Tropo API - Lisbon May 2016

Stève Sfartz, API evangelist @CiscoDevNet twitter://@SteveSfartz, github://@ObjectIsAdvantagDevNet Express Lisbon, May 11th 2016

Catalyzing Digital Transformations

by leveraging CISCO APIs

Page 2: DevNet Express - Spark & Tropo API - Lisbon May 2016

2

When the world becomes digital…

Host-to-Host Communication

WWW

Voice and Video over IP

Digital Videoand HDTV

Mobile devices & appsSocial

networking

Digital Transformations 1990-2010

Internet of Things

Big Data & Real-time Streaming Analytics

Software Defined Networking

Cloud &Data Center

Digital Convergence

Page 3: DevNet Express - Spark & Tropo API - Lisbon May 2016

3

Leveraging Cisco APIs examples

Innovations for the Digital Business

Internet of Things

Big Data & Real-time Streaming Analytics

Software Defined Networking

Cloud &Data Center

Digital Convergence

Page 4: DevNet Express - Spark & Tropo API - Lisbon May 2016

4

Create Business Impact with Cisco’s CMX

• Presence and location detection• Visibility (Wi-Fi, Beacons)

• Easy Wi-Fi login, custom or social• Zone-based, custom splash pages

• App-based mobile engagement• Context-aware in-venue experiences

Analytics

Detect Connect Engage

Page 5: DevNet Express - Spark & Tropo API - Lisbon May 2016

5

RetailBanking Hospitality Healthcare

Patron ExperienceStreamlined Operations

When a patron enters the bank…• Signage changes to welcome patron to

specific area of bank• VIP guest presence is detected and sent to

greeters to extend personal welcome• Patron banking information is populated on

teller’s screen

Banking Hospitality Retail Healthcare

Real Innovations for the Digital BusinessStraight from Customer Conversations

Page 6: DevNet Express - Spark & Tropo API - Lisbon May 2016

6

Patient ExperienceCompliance & Efficiency

When patient’s doctor walks into room…• Lights turn on• Patient chart pops up on wall• Doctor is reminded to sanitize hands upon

entering and leaving

Banking Hospitality Retail Healthcare

Real Innovations for the Digital BusinessStraight from Customer Conversations

Page 7: DevNet Express - Spark & Tropo API - Lisbon May 2016

7

MapsReal Time Location

Location history Notification API

CMX Location API

Page 8: DevNet Express - Spark & Tropo API - Lisbon May 2016

8

CMX Mobility Services Engine APIs

Maps API• Get Maps• Get Maps Image

Real Time Location API• Get Location• Get Count

Location History API• Get Location History• Get Location History Count

Notification API• NotificationSubscription• Movement Event• Presence Event

Page 9: DevNet Express - Spark & Tropo API - Lisbon May 2016

9

CMX Real Time Location API/api/location/v2/clients

Complete list of wireless clients/api/location/v2/clients{?[ipaddress|macAddress|username]}Location of wireless client with specified id. ID can be MAC address, IP address, or username

MAC format is /api/location/v2/clients?macAddress=30:f7:c5:cc:3e:xxIP address format is /api/location/v2/clients?ipAddress=10.10.10.10Username format is /api/location/v2/clients?username=someUsername/api/location/v2/clients/count

Count of wireless clients for the specified query conditions

Page 10: DevNet Express - Spark & Tropo API - Lisbon May 2016

10

CMX REST API Documentation

https://serverAddress/apidocs/

Page 11: DevNet Express - Spark & Tropo API - Lisbon May 2016

11

http://usecases.tropo.com/

Page 12: DevNet Express - Spark & Tropo API - Lisbon May 2016

12

Make Cisco Spark the Place for All Your Work

App Integration Services Spark for Developers

Easily configured integrations in the Cisco Spark app to unify workstreams

Native Integrations

Connect to other apps in seconds to automate recurring tasks and

make your life more efficient

Create custom integrations using Cisco Spark APIs through the Spark

for Developers portal

Built.io

Zapier

IFTTT

developer.ciscospark.com

Easy for users to integrate Cisco Spark with the apps they loveTools for developers to transform collaboration experiences

Page 13: DevNet Express - Spark & Tropo API - Lisbon May 2016

13

People/people/people/{personId}

Rooms/rooms/rooms/{roomId}

Messages/messages/messages/{messageId}

Webhooks/webhooks/webhooks/{webhookId}

GET

GET

GET

GET

POST

PUT DEL

GET

GET

POST

DEL

GET

GET

POST

DEL

Key APIs

Base URLhttps://api.ciscospark.com/v1/

SparkRESTful API

Page 14: DevNet Express - Spark & Tropo API - Lisbon May 2016

14

Mobile Developer

App Developer

Web Developer

Data Developer

“Developers” are implementing the transformation

“Developer” meant

Back-end Engineer

App Developer

Solution Architects

Web, Mobile Developer

Today means

Software Developers

IT/Cloud ArchitectSystem/Network Engineer

DevOps Engineers

IT Professionals

Business Departments,Support operations,

Data Analysts

PowerUsers

Page 15: DevNet Express - Spark & Tropo API - Lisbon May 2016

If you are digitizing your organization,You are a DeveloperDevNet will support you in your journey.

Inspire Learn Code

Software Developers IT Professionals Power Users

Page 16: DevNet Express - Spark & Tropo API - Lisbon May 2016

16

Cisco Platforms for Innovation

Developer Resources

Market Opportunities

Vibrant Developer Ecosystem

16

Page 17: DevNet Express - Spark & Tropo API - Lisbon May 2016

17

Join DevNet and get instant free access to the whole set of ressources for developers

Page 18: DevNet Express - Spark & Tropo API - Lisbon May 2016

Developer Portal• Dev Centers• Support Centers

370,000 Members(April 2016)

Learning labsSpringboards & Sandbox

Hackathons, CodeCamps DevNet Express

Standards & Open Source

DevNet Zone at Cisco Lives

DevNet Kids, IEEE Women in Engineering

API DocumentationProjet Showcases

Forums, Community blogs

Page 19: DevNet Express - Spark & Tropo API - Lisbon May 2016

19

Meet and learn @Cisco Live / DevNet Zone

• Presentations• Instructor-driven class rooms• Demo pods • On-site Learning Labs• Pre-event Hackathons

Page 20: DevNet Express - Spark & Tropo API - Lisbon May 2016

20

Page 21: DevNet Express - Spark & Tropo API - Lisbon May 2016

21

Partners and Developer Communities TrainingAPIs, Coding, Collab, SDN, IoT, Cloud, DevOps

https://developer.cisco.com/site/devnet/events-contests/events/

Page 22: DevNet Express - Spark & Tropo API - Lisbon May 2016

Learn:attend an event or take a learning lab

Python Coding SpringBoard101: REST Basics102: Calling REST APIs from Python201: Parsing XML202: Parsing JSON204: Reading data from a file using Python205: Writing data to a file using Python206: How to use the Python logging module207: Putting it all together.

Page 23: DevNet Express - Spark & Tropo API - Lisbon May 2016

23

Learning LabsSelf-paced, step-by-step tutorials on a wide-range of programmability topics and solutions !

Page 24: DevNet Express - Spark & Tropo API - Lisbon May 2016

24

Guided path to learn selected Cisco technologies

Springboard have modules, composed of learning labs

Springboards

Page 25: DevNet Express - Spark & Tropo API - Lisbon May 2016

25

Sandbox – Remote labs

Page 26: DevNet Express - Spark & Tropo API - Lisbon May 2016

26

Visit http://developer.cisco.com/networking

Network Programmability Dev Center

Page 27: DevNet Express - Spark & Tropo API - Lisbon May 2016

27

Includes Coding 101 Includes Networking 101

DNA Learning Tracks forNetwork Engineers and App Developers

Network Engineers Application Developers

http://developer.cisco.com/networking

Page 28: DevNet Express - Spark & Tropo API - Lisbon May 2016

28

DNA Learning Tracks forData Center and Enterprise Controllers

Data Center Controller Enterprise Controller

http://developer.cisco.com/networking

Learn how to code ACI Learn coding fundamentals& APIC-EM APIs

Page 29: DevNet Express - Spark & Tropo API - Lisbon May 2016

API Dev Centers

29

Cisco Open Stack Private Cloud

Page 30: DevNet Express - Spark & Tropo API - Lisbon May 2016

API Dev Centers

30

Page 32: DevNet Express - Spark & Tropo API - Lisbon May 2016

Visit developer.cisco.com/devnetlabs

DevNet Labs – Inspiration

Page 33: DevNet Express - Spark & Tropo API - Lisbon May 2016

33

Developer Community and ForumsGet free support from communities forums

Moderated by Cisco

communities.cisco.com

Page 34: DevNet Express - Spark & Tropo API - Lisbon May 2016

34

Case-Based Developer Support

Option for Case Based Developer Support

Page 35: DevNet Express - Spark & Tropo API - Lisbon May 2016

35

Signup at developer.cisco.com Take a learning lab Meet at an event Ask for help and help others in DevNet forums Follow us on Twitter : @CiscoDevNet

Join the DevNet Community !

Page 36: DevNet Express - Spark & Tropo API - Lisbon May 2016

Stève Sfartz, API evangelist @CiscoDevNet twitter://@SteveSfartz, github://@ObjectIsAdvantagDevNet Express Lisbon, May 11th 2016

Introduction to Cisco Spark APIs

Page 37: DevNet Express - Spark & Tropo API - Lisbon May 2016

37

increase in amount of information created by 2020

500%of organizations will offer mobility to workers by 2020

90%increase in innovation and creativity with collaboration outside the organization

35%

The Way We Work Has Changed

Agile Teams Work From Anywhere Ecosystem Collaboration

to to to

Individuals At a Corporate Desk Internal Interactions

Social Media Today Frost & Sullivan PGi

Page 38: DevNet Express - Spark & Tropo API - Lisbon May 2016

38

Why Cisco Spark

Simple Secure Complete

Page 39: DevNet Express - Spark & Tropo API - Lisbon May 2016

39

Secure

One Experience

Message Meeting Call1:1 and team messaging in virtual rooms

Persistent Chat, Content Sharing, Iteration

A Cloud-based phone system plus much more

Make calls within or outside organization via the PSTN

Audio, video, and web meetings

Before/during/after-meeting messaging and content

Cisco Spark

Page 40: DevNet Express - Spark & Tropo API - Lisbon May 2016

40

Cisco Spark demo

Drag picture to placeholder or click icon to add

Page 41: DevNet Express - Spark & Tropo API - Lisbon May 2016

41

Cisco Spark

Open Platform

Common Management

Spark for DevelopersUser Integrations, APIs/SDKs, etc.

Spark Hybrid ServicesCloud + Prem

Partner ServicesInterconnect

Message Meeting Call

Page 42: DevNet Express - Spark & Tropo API - Lisbon May 2016

42

The New Collaboration LandscapePowered by APIs that are simple, open, and pay as you go

Embed a collaboration service

into your offering

Accelerate time to market

Generate better business outcomes

Improve employee & customer satisfaction

Access your favorite tools

wherever you work

Build customized solutions

for verticals

- -

Integrate with your existing

IT management tools

Enables Agile Businesses

Page 43: DevNet Express - Spark & Tropo API - Lisbon May 2016

43

Cisco Spark for Developers

43© 2015 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Make it easy for users to integrate Cisco Spark with the apps they love and give developers tools to transform collaboration experiences.

Teams unify workstreams

in a click

Native Integrations

Power-users create their own apps

in minutes

App Integration Services

Developers accelerate the value of Spark in

their environments

PlatformAPIs / SDKs

Page 44: DevNet Express - Spark & Tropo API - Lisbon May 2016

44

Who Uses the Integrations and APIs?

-

Developer

Power User

App Integration servicesNative Integration’s

/Rooms

/Memberships/Messages

/Webhooks/People

Page 45: DevNet Express - Spark & Tropo API - Lisbon May 2016

45

• Unify workstreams from right inside the Cisco Spark app with native integrations

• Instagram, Trello, Pagerduty, Zendesk, Github

Use Native Integrations or Create Your Own

Screens are for marketing use only and may change in production

Page 46: DevNet Express - Spark & Tropo API - Lisbon May 2016

46

Native integration

Trello integration

Drag picture to placeholder or click icon to add

Page 47: DevNet Express - Spark & Tropo API - Lisbon May 2016

47

App Integration Services

Build your own integrations between

Cisco Spark and the other apps you love

Use built-in filters to automate how content is shared

Platforms that create connections between

hundreds of apps

Page 48: DevNet Express - Spark & Tropo API - Lisbon May 2016

48

App Integration Services

Zapierintegration Drag picture to placeholder or click icon to add

Page 49: DevNet Express - Spark & Tropo API - Lisbon May 2016

49

Use Spark to stay up to date

Keep up with Twitter mentions

Your personal productivity tool

Page 50: DevNet Express - Spark & Tropo API - Lisbon May 2016

50

App Integration Services

Built.iointegration

Drag picture to placeholder or click icon to add

Page 51: DevNet Express - Spark & Tropo API - Lisbon May 2016

51

Send SMS from Spark/sms +33678007899 “Hi Stève, can you call me back, Rui”

Page 52: DevNet Express - Spark & Tropo API - Lisbon May 2016

52

‘Your App’ Now with

Cisco Collab!

Spark APIs Extend Cisco Collaboration Cloud

GET

POST

DELETE

PUT

/Rooms

/Memberships

/Messages

/Webhooks

/People

Page 53: DevNet Express - Spark & Tropo API - Lisbon May 2016

53

Cisco Spark API v1/People /Rooms /Membership /Messages /Webhooks

List People List Rooms List Membership List Messages List Webhooks

Get Person Details Create a Room Create a Membership Create a Message Create a Webhook

Get My Details Get Room Details Get Membership Details Get Message Details Get Webhook Details

Update a Room Update a Membership Update a Webhook

Delete a Room Delete a Membership Delete a Message Delete a Webhook

GET

POST

DELETE

PUT

DELETE DELETE DELETE

PUT PUT

POST POST POST

GET GET GET

GET GET

GET

GET GET

GET

GET

Page 54: DevNet Express - Spark & Tropo API - Lisbon May 2016

54

Page 55: DevNet Express - Spark & Tropo API - Lisbon May 2016

55

Cisco Spark API (create room, send message)

Interactive documentation

Drag picture to placeholder or click icon to add

Page 56: DevNet Express - Spark & Tropo API - Lisbon May 2016

56

Developer Portal Interactive Docs

Server SDKs

Developer Site

24/7 Dev Support

Watch a Site Overview Now!

Page 57: DevNet Express - Spark & Tropo API - Lisbon May 2016

Stève Sfartz, API evangelist @CiscoDevNet

twitter://@SteveSfartz, github://@ObjectIsAdvantagDevNet Express Lisbon, May 11th 2016

Introduction to Tropo APIs

Page 58: DevNet Express - Spark & Tropo API - Lisbon May 2016

Cloud APIs enabling developers to quickly and easily embed communication capabilities into their applications and business processes.

Page 59: DevNet Express - Spark & Tropo API - Lisbon May 2016

59

Old-styleCommunicationDevelopment

Page 60: DevNet Express - Spark & Tropo API - Lisbon May 2016

+• Ask • Call • Conference • Hangup

• Record • Reject • Say • Transfer

Page 61: DevNet Express - Spark & Tropo API - Lisbon May 2016
Page 62: DevNet Express - Spark & Tropo API - Lisbon May 2016
Page 63: DevNet Express - Spark & Tropo API - Lisbon May 2016
Page 64: DevNet Express - Spark & Tropo API - Lisbon May 2016
Page 65: DevNet Express - Spark & Tropo API - Lisbon May 2016

65

•Globally available•Global Outgoing Calls & Messages•Numbers in 42 countries•80 speech languages

Page 66: DevNet Express - Spark & Tropo API - Lisbon May 2016

66

Page 67: DevNet Express - Spark & Tropo API - Lisbon May 2016

67

Page 68: DevNet Express - Spark & Tropo API - Lisbon May 2016

Code Examples

Page 69: DevNet Express - Spark & Tropo API - Lisbon May 2016

69

say("hello world");

Page 70: DevNet Express - Spark & Tropo API - Lisbon May 2016

Play an Audio File

say(“http://www.phono.com/audio/troporocks.mp3");

Page 71: DevNet Express - Spark & Tropo API - Lisbon May 2016

71

call("+14155550100");say("Tag, you’re it!");

Asking a QuestionOutbound Voice Call

Page 72: DevNet Express - Spark & Tropo API - Lisbon May 2016

72

Asking a QuestionSend a Text Messagecall("+14155550100", {network:"SMS"});say("Tag, you’re it!");

Page 73: DevNet Express - Spark & Tropo API - Lisbon May 2016

Asking a Question

var result = ask("What's your favorite color? Choose from red, blue or green.", { choices:"red, blue, green"});say("You said " + result.value);log("They said " + result.value);

Page 74: DevNet Express - Spark & Tropo API - Lisbon May 2016

Voicemail Application

record("Leave your message at the beep. Press pound when finished.", { beep:true, timeout:10, silenceTimeout:7, maxTime:60, terminator:'#', recordFormat:"audio/mp3", recordURI:"ftp://example.com/1.mp3", recordUser:"tropocloud", recordPassword:"password" });

Page 75: DevNet Express - Spark & Tropo API - Lisbon May 2016

Record an Entire Call

startCallRecording("http://example.com/recording.js");

ask("What's your favorite color? Choose from red, blue or green.", { choices:"red, blue, green"});

stopCallRecording();

Page 76: DevNet Express - Spark & Tropo API - Lisbon May 2016

Tropo API Documentation

Page 77: DevNet Express - Spark & Tropo API - Lisbon May 2016

usecases.tropo.com

Page 78: DevNet Express - Spark & Tropo API - Lisbon May 2016

78

Customer Loyalty

In store IVR

Notifications

Satisfaction Surveys “Press 1 if you were satisfied

Status of gift cards, extra coupons, promotions

Confirmation receipts of delivery, order pickups

In store Paging and Notification - “Press for help in electronics”

Branch site flexibility

Appointment Reminders

Use Cases

Retail

Click to Call for Web Leads (auto conference)

Delivery/Operations In store Delivery optimization

Page 79: DevNet Express - Spark & Tropo API - Lisbon May 2016

79

Hospital, Pharmacy

Home Healthcare

Operations

Patient appointment Reminders

Prescription Re-fill and pickup reminders

Medical lab results outbound IVR

Time of Day Dietary and Exercise Reminders

Daily check-ins “today’s pain level =“, Mental illness check-in

Nurse site visit verifications

Use Cases

Billing record verifications and payments

Health Care

+

Masked Number Medical Consult

Page 80: DevNet Express - Spark & Tropo API - Lisbon May 2016

80

Customer Loyalty

Customer Interaction

Workforce Optimization

Theme park notifications

Deals, promotions marketing campaigns

Appointment Reminders “ Your Massage is scheduled”

Reservation and Delivery confirmations

“Your Table is ready”

Basic Interactive Voice Response – Press 1 for concierge

Use Cases

Hospitality

Maintenance services to validate job status

Customer Loyalty Surveys

Page 81: DevNet Express - Spark & Tropo API - Lisbon May 2016

81

Banking

Insurance

2 Factor Authentication

Appointment Reminders, Kiosk integrations

Basic account balance IVR and self service

Proactive notifications – low balance, fraud, account activity

Proactive Notifications – New offers, loan rates, stocks

Extreme Weather Notification Services

Branch Location Flexibility for IVR

Verification of identify for account access

Use Cases

Payment Reminders

Financial Services

Page 82: DevNet Express - Spark & Tropo API - Lisbon May 2016

82

IOT Sensor Alerting

Customer Loyalty

Escalation of thresholds to sms/voice

Plant status Emergency notifications « plant down, line halt »

Smart Grid power consumption management

Gas tank and gauge thresholds

Use Cases

Proactive outreach of utility spending, surges, planned downtime

Manufacturing &

Energy

Notifications

Payment Reminders

Remote device status alerts (inbound or outbound)

Page 83: DevNet Express - Spark & Tropo API - Lisbon May 2016

83

911 Alerting

Notifications

Reminders

City appointment reminders / take a ticket

Intruder and emergency alerts via Text and Calling to Mobile

Extreme Weather notifications

Use Cases

City – Roadwork, closures, emergencies

Education,

Government

Location tracking and alerts for student locationsTransportation – City Bus Systems

Parent/student information - grades, tardy

Schedule changes school closed, late start days

Page 84: DevNet Express - Spark & Tropo API - Lisbon May 2016
Page 85: DevNet Express - Spark & Tropo API - Lisbon May 2016

85

Tropo.com

Free calls and text messages for development testing.

Page 86: DevNet Express - Spark & Tropo API - Lisbon May 2016

Stève Sfartz, API evangelist @CiscoDevNet twitter://@SteveSfartz, github://@ObjectIsAdvantagDevNet Express Lisbon, May 11th 2016

Cisco Spark &Tropo APIsbetter together to

solve Business Problems

Page 87: DevNet Express - Spark & Tropo API - Lisbon May 2016

87

Cisco Collaboration Developer Platforms

Complete collaboration

solution

Modular building blocks

Integrate, extend, and customize Spark experiences

Cisco Spark Platform Embed voice and SMS services to enhance

business processes

Tropo Platform

Our flexible platforms offer businesses a comprehensive set of tools to extend and embed cloud collaboration services, increasing team productivity and deepening customer engagement.

Connect people, services and business processes like never before

Connect people, services and business processes like never before

Page 88: DevNet Express - Spark & Tropo API - Lisbon May 2016

88

Complementary Developer Platforms

Complete collaboration service

Building better teams

Subscription-based pricing for enterprise IT feature set

Make Spark experiences even better

API as the product – telephony centric use cases

Vertical business application focus

Pay-as-you-go

Add communications to apps and business processes

Cisco Spark for Devs Tropo Platform

Page 89: DevNet Express - Spark & Tropo API - Lisbon May 2016

89

Growing Developer and ISV Ecosystem

Page 90: DevNet Express - Spark & Tropo API - Lisbon May 2016

90

+441259340737

/fault <fault number> resolved <case closing comments>

https://tropofaultreport.herokuapp.com/faults

Page 91: DevNet Express - Spark & Tropo API - Lisbon May 2016

91

“Altocloud creates windows into Spark rooms so our employees can see what customers are doing, anticipate their need, and engage with them at the right moment to improve customer business outcomes.”

- Dan Arra, VP Customer Success & Co-Founder

Example: AltocloudWatch now

Challenges• Brands need to optimize the customer journey across their

digital platforms

• Users seek on-demand answers and responses when shopping online but on the device and format of their choosing

Solution• Use Spark and Tropo APIs to add new communications

capabilities to the Altocloud Customer Engagement platform

• Notify Altocloud users through Tropo voice and SMS when Altocloud identifies Hot Prospects on their digital properties

• Altocloud users can interact with prospects or customers right from Cisco Spark rooms

• Prototype created in just a few weeks

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Page 92: DevNet Express - Spark & Tropo API - Lisbon May 2016

92

Example: QWASIWatch now

Challenges• Buyers expect more from the brands they love

• Brands are seeking to move from “pray and spray” of the past to a more relevant and intimate marketing approach

• QWASI’s platform has the intelligence to optimize loyalty programs but required additional communications capabilities

Solution• Enable users to program outbound voice and SMS

communications to users at the right time, right device

• Provide the tools to build a simple, yet effective IVR for end customers to get (and provide) additional information

• Help users provision locally-based phone numbers to improve trust and relevance with end customers

OPTION 2

“Once we implement a voice API we don’t have to worry about if it works with all the existing infrastructure that’s in place”

- John Wharton, VP Business Development

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Page 93: DevNet Express - Spark & Tropo API - Lisbon May 2016

93

Example: Tagnos

Challenges• Patient wait times at hospitals are often long

• Hospitals are now rated based on customer experience – long wait times can hamper this

• The Tagnos tracking system needs to integrate patient data in a place people can see those data and respond immediately

Solution• Embed Tropo SMS to send notifications and alerts to hospital

staff when there is an exception to the patient care process

• Enable staff to mediate issues real-time by simply tapping to join a Cisco Spark room from any device

• Reduce patient wait times in clinical trials

© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential

Page 94: DevNet Express - Spark & Tropo API - Lisbon May 2016

94

Building a Vibrant Developer CommunityJoin us

Hack-a-thons

• Public/sponsored

• Internal/focused

Workshops

• Change hearts and minds

• Create new devs out of non-devs

$Innovation

Fund

• Build preference within the startup ecosystem

• Work with partners to leverage new solutions in customer workflows

• New events and audiences

• Inspiring talks & interactive demos

• Great hospitality

Pop Ups #SparkHaus

Page 95: DevNet Express - Spark & Tropo API - Lisbon May 2016

95

• Helping partners develop new integrations with Spark

• Direct investments in partners• Adding additional capabilities

into Cisco/Tropo technology and platform

• Extensive support beyond just help desk

For more information and to sign up:https://developer.ciscospark.com/fund/

New $150M Spark Innovation Fund

Page 96: DevNet Express - Spark & Tropo API - Lisbon May 2016

96

Cisco Developer Platforms Sign Up Today!

InteractiveDocs

DeveloperPortal

SDKs24/7 DevSupport

https://developer.ciscospark.com/ http://www.tropo.com

Page 97: DevNet Express - Spark & Tropo API - Lisbon May 2016

97

Development Is Always Free

Registerhttps://www.tropo.com/register

Experiencehttp://usecases.tropo.com/

Page 98: DevNet Express - Spark & Tropo API - Lisbon May 2016

98

Cisco DevNet Learning Labs

BeginnerSparkCallsCollaborationIntermediateJabber Guest

Jabber Web SDKJavaScriptMobilityPhoneRemote ExpertREST

SMSTTSTropoUDSVoiceWebex API

https://learninglabs.cisco.com

Page 99: DevNet Express - Spark & Tropo API - Lisbon May 2016

99

Follow and Engage with Us!

@CiscoSparkDev

@Tropo

@CiscoDevNet

Page 100: DevNet Express - Spark & Tropo API - Lisbon May 2016

Stève Sfartz, API evangelist @CiscoDevNet twitter://@SteveSfartz, github://@ObjectIsAdvantagDevNet Express Lisbon, May 11th 2016

Cisco Spark & Tropo for Power Users

your interactions without coding

Page 101: DevNet Express - Spark & Tropo API - Lisbon May 2016

101

Cisco Spark

A complete business collaboration service from the Cisco cloud that enables customers to message, meet, or call anyone, anywhere, and anytime.

Page 102: DevNet Express - Spark & Tropo API - Lisbon May 2016

102

Spark App

Less email. More agility. Better teamwork.

Communicate from where your work lives

Page 103: DevNet Express - Spark & Tropo API - Lisbon May 2016

103

Spark Endpoints

Video IP & IP Phones

Spark Room System

Page 104: DevNet Express - Spark & Tropo API - Lisbon May 2016

104

Rooms, Messages, Calls, Meetings

Cisco Spark App

Drag picture to placeholder or click icon to add

Page 105: DevNet Express - Spark & Tropo API - Lisbon May 2016

105

Make Spark the Place for All Your Work

App Integration Services Spark for Developers

Easily configured integrations in the Cisco Spark app to unify workstreams

Native Integrations

Connect to other apps in seconds to automate recurring tasks and

make your life more efficient

Create custom integrations using Cisco Spark APIs through the Spark

for Developers portal

Built.io

Zapier

IFTTT

developer.ciscospark.com

Easy for users to integrate Cisco Spark with the apps they loveTools for developers to transform collaboration experiences

Page 106: DevNet Express - Spark & Tropo API - Lisbon May 2016

106

People/people/people/{personId}

Rooms/rooms/rooms/{roomId}

Messages/messages/messages/{messageId}

Webhooks/webhooks/webhooks/{webhookId}

GET

GET

GET

GET

POST

PUT DEL

GET

GET

POST

DEL

GET

GET

POST

DEL

Key APIs

Base URLhttps://api.ciscospark.com/v1/

SparkRESTful API

Page 107: DevNet Express - Spark & Tropo API - Lisbon May 2016

107https://developer.ciscospark.com

Page 108: DevNet Express - Spark & Tropo API - Lisbon May 2016

108

App Integration Services

Build your own integrations between

Cisco Spark and the other apps you love

Use built-in filters to automate how content is shared

Platforms that create connections between

hundreds of apps

Page 109: DevNet Express - Spark & Tropo API - Lisbon May 2016

109

Native integration

Trello integration

Page 110: DevNet Express - Spark & Tropo API - Lisbon May 2016

110

• Signup at: https://trello.com/• Launch Cisco Spark Web Client: https://web.ciscospark.com/• Create a Room

• Advices: Team Room with 2 other YOU, rename to « Trello Integration »

• Select Add integration in the Right pane• Create or move Cards around in Trello

Hands-on

Page 111: DevNet Express - Spark & Tropo API - Lisbon May 2016

111

App Integration Services

Zapierintegration Drag picture to placeholder or click icon to add

Page 112: DevNet Express - Spark & Tropo API - Lisbon May 2016

112

Use Spark to stay up to date

Keep up with Twitter mentions

Your personal productivity tool

Page 113: DevNet Express - Spark & Tropo API - Lisbon May 2016

113

• Create a Room • Advices: Team Room with 2 other YOU, rename to « Zapier Integration »

• Signup at: https://zapier.com • Create a new Zap• Add a Twitter activity / select Search Mention• Add your search criteria

@Tropo OR #CiscoSpark OR @CiscoSparkDev OR @CiscoDevNet

Hands-on

Page 114: DevNet Express - Spark & Tropo API - Lisbon May 2016

114

• Add a Cisco Spark activity / choose Post Message• Connect your Spark account• Choose a Spark Room and customize the message

• Run your Zap

Hands-on

AuthoringAssistant

Page 115: DevNet Express - Spark & Tropo API - Lisbon May 2016

115

• Add a filter to remove Retwitts• Click on the vertical line to open the Add activity assitant• Select add a Filter

Hands-on

Page 116: DevNet Express - Spark & Tropo API - Lisbon May 2016

116

App Integration Services

Built.iointegration

Page 117: DevNet Express - Spark & Tropo API - Lisbon May 2016

117

SMS from Cisco Spark with Tropo

/sms +33678007899 “Hi Steve, can you call me ASAP ? Rui”

Page 118: DevNet Express - Spark & Tropo API - Lisbon May 2016

118

• Create a Room • Advices: Team Room with 2 other YOU, rename to « Built.io Integration »

• Signup at: https://flow.built.io • Create a new Flow• Go to the settings• Toogle Webhook « on »• Copy link

Hands-on

Page 119: DevNet Express - Spark & Tropo API - Lisbon May 2016

119

Let’s start with a webhook

no secret sauce, it’s just about REST & json

Page 120: DevNet Express - Spark & Tropo API - Lisbon May 2016

120

no secret sauce, it’s just about REST & json

Page 121: DevNet Express - Spark & Tropo API - Lisbon May 2016

121

Is new message a /sms command ?

Page 122: DevNet Express - Spark & Tropo API - Lisbon May 2016

122

if yes …

Page 123: DevNet Express - Spark & Tropo API - Lisbon May 2016

123

get all info about the Tropo send SMS script

call(phonenumber, { network:"SMS"});say(msg);

Page 124: DevNet Express - Spark & Tropo API - Lisbon May 2016

124

check the SMS send script token url

Token URL

Page 125: DevNet Express - Spark & Tropo API - Lisbon May 2016

125

test with Postman

Page 126: DevNet Express - Spark & Tropo API - Lisbon May 2016

126

connect the Tropo SMS send script

Page 127: DevNet Express - Spark & Tropo API - Lisbon May 2016

127

link request parameters to the Tropo script

Page 128: DevNet Express - Spark & Tropo API - Lisbon May 2016

128

acknowledge into the Spark room

Page 129: DevNet Express - Spark & Tropo API - Lisbon May 2016

129

SMS from Cisco Spark with Tropo

/sms +33678007899 “Hi Steve, can you call me ASAP ? Rui”

Page 130: DevNet Express - Spark & Tropo API - Lisbon May 2016

Stève Sfartz, API evangelist @CiscoDevNet twitter://@SteveSfartz, github://@ObjectIsAdvantagDevNet Express Lisbon, May 11th 2016

Cisco Spark & Tropo for developers

code your own interactions

Page 131: DevNet Express - Spark & Tropo API - Lisbon May 2016

Cloud APIs enabling developers to quickly and easily embed communication capabilities into their applications and business processes.

Page 132: DevNet Express - Spark & Tropo API - Lisbon May 2016

132Sample Footer

Simple for Web/App Developers

+• Ask • Call • Conference • Hang-up

• Record • Reject • Say • Transfer

Page 133: DevNet Express - Spark & Tropo API - Lisbon May 2016

Sample Code

ask “Thanks for calling. For sales press 1. For support press 2.”, { :choices => “1,2”, :onChoice => { say “A sales person is not available right now” if result.value == 1 say “Support is currently assisting other customers” if result.value == 2 }}

Sample Footer

Page 134: DevNet Express - Spark & Tropo API - Lisbon May 2016

Option One – Scripting API

Sample Footer

#send_sms.rbcall("+14075550100", { network: "SMS” });say("Don't forget your meeting at 2 p.m. on Wednesday!");

#Activate by calling URL + Token with HTTP GET/POSThttps://api.tropo.com/1.0/sessions?action=create&token=TOKEN

Page 135: DevNet Express - Spark & Tropo API - Lisbon May 2016

Option Two – Web API135

Sample Footer

require 'tropo-webapi-ruby'require 'sinatra'

 post '/index.json' do

   t = Tropo::Generator.new

   t.call(:to => "+14075550100", :network => "SMS")

t.say(:value => "Tag, you're it!")t.response

   end

Page 136: DevNet Express - Spark & Tropo API - Lisbon May 2016

136

http://usecases.tropo.com/

Page 137: DevNet Express - Spark & Tropo API - Lisbon May 2016

137

Hands on

• Create a Tropo account on tropo.com

• Drop your Account ID in the Spark Room and get activated for Outbound SMS & Calls

• Create a javascript application which send an SMS, add a Canadian endpoint, invoke via the token URL

• Create a javascript application which responds to incoming calls, add a local phone number, call the phone number

Sample Footer

Page 138: DevNet Express - Spark & Tropo API - Lisbon May 2016

138

Cisco Spark

A complete business collaboration service from the Cisco cloud that enables customers to message, meet, or call anyone, anywhere, and anytime.

Page 139: DevNet Express - Spark & Tropo API - Lisbon May 2016

139

Spark App

Less email. More agility. Better teamwork.

Communicate from where your work lives

Page 140: DevNet Express - Spark & Tropo API - Lisbon May 2016

140

Spark Endpoints

Video IP & IP Phones

Spark Room System

Page 141: DevNet Express - Spark & Tropo API - Lisbon May 2016

141

Rooms, Messages, Calls, Meetings

Cisco Spark App

Drag picture to placeholder or click icon to add

Page 142: DevNet Express - Spark & Tropo API - Lisbon May 2016

142

Make Spark the Place for All Your Work

App Integration Services Spark for Developers

Easily configured integrations in the Cisco Spark app to unify workstreams

Native Integrations

Connect to other apps in seconds to automate recurring tasks and

make your life more efficient

Create custom integrations using Cisco Spark APIs through the Spark

for Developers portal

Built.io

Zapier

IFTTT

developer.ciscospark.com

Easy for users to integrate Cisco Spark with the apps they loveTools for developers to transform collaboration experiences

Page 143: DevNet Express - Spark & Tropo API - Lisbon May 2016

143

People/people/people/{personId}

Rooms/rooms/rooms/{roomId}

Messages/messages/messages/{messageId}

Webhooks/webhooks/webhooks/{webhookId}

GET

GET

GET

GET

POST

PUT DEL

GET

GET

POST

DEL

GET

GET

POST

DEL

Key APIs

Base URLhttps://api.ciscospark.com/v1/

SparkRESTful API

Page 144: DevNet Express - Spark & Tropo API - Lisbon May 2016

144https://developer.ciscospark.com

Page 145: DevNet Express - Spark & Tropo API - Lisbon May 2016

145

your first Cisco Sparkbot in nodejs

Drag picture to placeholder or click icon to add

Page 146: DevNet Express - Spark & Tropo API - Lisbon May 2016

146

Hands on

• Connect to the Cisco Spark Developer Portal

• Retrieve your Spark API Token

• Clone the Sparkbot StarterKit or npm install sparkbot-starterkit

• Run the outgoing integration example• Check documentation• Install localtunnel

• Run the REST webhook example

• Enhance with your own code

Sample Footer

Page 147: DevNet Express - Spark & Tropo API - Lisbon May 2016

147

https://github.com/ObjectIsAdvantag//sparkbot-starterkit

• Git clone

Page 148: DevNet Express - Spark & Tropo API - Lisbon May 2016

148

Helping partners develop new integrations with SparkDirect investments in partnersAdding additional capabilities into Cisco/Tropo technology and platformExtensive support beyond just help desk For more information or sign up:

https://developer.ciscospark.com/fund/

New $150M Spark Innovation Fund

Page 149: DevNet Express - Spark & Tropo API - Lisbon May 2016

149

//Cisco/DevNet/SteveSfartz

• API Evangelist @CiscoDevNet• Tropo & Spark APIs • code addict, any … but #golang lover• live in France, all around EMEA• hosted @PIRL – Paris Innovation Center• twitter://@SteveSfartz• github://ObjectIsAdvantag

“vision without execution is

hallucination”

[email protected]

Page 150: DevNet Express - Spark & Tropo API - Lisbon May 2016