- Webex Teams Desktop Client - Download
- Webex Teams Account - Sign up. Only If you don't have one already.
Cisco Webex Teams is a simple, secure collaboration platform where you can get things done from anywhere in the world. And Webex Teams APIs are keys to helping developers digitize businesses.
- Give me your email address associated with your new Webex Teams Account
- Login into your Webex Teams Desktop Client
The goal of this exercise is to familiarize yourself with the Webex Teams desktop client.
- You will need a nice profile picture of yourself to add to this account!
- Create a 1:1 space with me [@akoushke] and enter:
Hello Arash, I'm having lot of fun!
. - Create a space with your neighbor on your left; title: your name + your neighbor's name
- Say
hi
to your neighbor. - You neighbor will need to say
hi
back. - Say something to your neighbor and delete the message right away.
- Remove your neighbor from the space.
- Take a screenshot from the space and send it to me. If you don't know how to take a screenshot on a Mac book, GOOGLE!
- After my confirmation, remove yourself from the space.
- Back to the
General
space, answer the question using a thread. - Send a fun GIF into the General space.
- Use the following template to send a message into the
General
space. For this action item, You will need themarkdown
feature. Make sure to practice this in a different test space and come up with the final output in theGeneral
space.- Your favorite movie. e.g.
The Dark Knight Rises
- Your favorite actor/actress. e.g.
Heath Ledger
- Your favorite singer/band. e.g.
Lukas Graham
- One unpopular opinion. e.g.
GOT series are overrated.
- Fun Fact, e.g.
I play soccer thrice a week.
- Share either LinkedIn/Fb/Twitter/Instagram account here.
- Your favorite movie. e.g.
- Congrats, You are now a Webex Teams Professional user!
API stands for Application Programming Interface. An API is a software intermediary that allows two applications to talk to each other. In other words, an API is the messenger that delivers your request to the provider that you're requesting it from and then delivers the response back to you.
For instance, a picture below demonstrates a great example of communication between many applications:
as you can see, Application developer.cisco.com is able to interact via API with Github, Google, Facebook, Cisco, Webex Meeting, Webex Teams to log the user in or to authenticate the user.
developer.webex.com provides a well-oriented documentation to familiarize the developers with the API. The portal also allows developers to use with the API within itself, which is called a playground. We will now dive more into the portal.
The goal of this exercise is to familiarize yourself with the Webex Teams API.
- To get started, go to developer.webex.com.
- Make sure to login.
- Read up to
Methods & Content Types
section on this page. - Find your personal token and save it somewhere.
- On the left-side of portal, look for API Reference section.
- Click on Messages.
- Let's send a message to the
General
space using the playground. Click onCreate a Message
General
RoomID isY2lzY29zcGFyazovL3VzL1JPT00vMzNlMmExYTAtYTFkNC0xMWU5LThjYjUtZmIzMTdlYjY1YWY1
- Send a message to the space now. Share something about yourself.
- Send another markdown formatted message to the space now. Share something about yourself.
- A little bit more challenging action item; Delete the regular text message that you just sent into the
General
space without using the desktop client. Direct message me on the desktop client, if you need more hints. - Get details about yourself under
People
section. Find your ID and save it with your personal token. Try to understand what each field represents. Read the documentation thoroughly. - Find my work phone number and Direct message it to me.
- Now add yourself to this space:....
- Now remove yourself from the space.
Now that you learned a bit about the API, let's try it on Postman.
Install Postman and create an account with them. What is Postman
? Google What is Postman?
- Install Postman.
- Create an account; see if you can hook it up with your github account.
- Get your account details using the Postman now.
- Now, get my account detials. You will need my personId [Y2lzY29zcGFyazovL3VzL1BFT1BMRS80N2MzMmQwYi0wNDQ0LTQ2MGQtOGJjZS0yMjY1YjUwMWFhYzU] for the endpoint https://api.ciscospark.com/v1/people/personId.
We will need this tool to test our code later.
Before creating our first NodeJS application, we need to setup some tools. But before that, let's learn some important concepts on a very high-level to help us understand what the heck we are about to do.
Node JavaScript - AKA NodeJS, is one way to execute code on a computer. It is simply a JavaScript runtime. Also JavaScript is a high-level, interpreted programming language that most web developer use these days. we need a language to write our application with,and we picked JavaScript. We also need something to run our application on and this is where NodeJS comes in. NodeJS will run out JavaScript application. I found these articles very helpful to read if you are interested in learning more about JavaScript and NodeJS. As we start coding, we learn more and more about these technologies.
First we need to setup some accounts and install some softwares on our computers.
According to this super detailed article, Git
is a type of version control system (VCS) that makes it easier to track changes to files. For example, when you edit a file, git can help you determine exactly what changed, who changed it, and why. And Github
is a website for hosting projects that use git.
- Create an account on
Github
on github.com. Profile Picture is a must! - Click here to access our main repository again.
- Click on
Fork
button on top right corner. - Save the URL somewhere, or have the tab open.
We are going to use Glitch
to edit and host our application.
- Sign into
Glitch
using yourGithub
credentials (Oh Mighty! Integration betweenGlitch
andGithub
). - Profile picture!
- New Project.
- Clone from Git Project.
- Paste your forked repository URL in there.
Now that you have successfully set up your accounts and have access to the project, let's go ahead and create a bot on the Webex Teams Developer Portal.
- Login
- Click on your profile picture
- Click on
My Webex Teams Apps
- Create a new App
- Pick
Bot
- Fill out the inputs accordingly and pick a picture for your bot - be creative.
- Your Bot's ID and access token are important. save them somewhere. or leave the tab open. You are going to need them both later.
Before you start coding, let's look at our directory structure:
|-- images/
|-- node_modules/
|-- src
| |-- helpers
| |-- messages.js
| |-- people.js
| |-- routers
| |-- rooms.js
| |-- webhooks.js
| |-- people.js
|-- bot.js
|-- constants.js
|-- index.js
|-- package.json
|-- package-lock.json
|-- README.md