What Is Machine Learning for the Enterprise – Video Recording

The San Francisco team hosted What is Machine Learning for the Enterprise Lunch-and-Learn event. This event was an absolute beginner’s guide to machine learning for the enterprise. Kanishk Priyadarshi, Head of Engineering and Innovation at IBM, covered strategic and design-thinking inspired conversation for beginners to explore and apply machine learning at your enterprise! In case you missed it, you can watch the video below. If you want to learn about Watson AI, Containers, Blockchain, Serverless, APIs and other topics, please check out our upcoming developer workshops.

 

How to Invoke the Watson Language Translator API from an Appery.io App

In this blog post you will learn how to invoke the Watson Language Translator API from an Appery.io app. Before you will learn how to do that, let me give you a quick overview of the Appery.io platform.

Appery.io is a cloud platform for building and running mobile web and hybrid apps. The platform provides the following major benefits:

  • A visual, drag and drop UI builder (based on jQuery Mobile, Ionic or Bootstrap)
  • A cloud database for storing app data.
  • Node.js-like environment (called Server Code) for running any custom app code (written in JavaScript).
  • API Express for connecting to any external/enterprise data sources such as a SQL database, web service or a REST API.
  • Sending Push Notifications.

If you are looking for more Appery.io content, simply look for posts tagged with Appery.io.

Appery.io makes it very easy to invoke any 3rd party REST APIs using Server Code or API Express. In this blog post you will learn how to invoke the Watson Language Translator API from Server Code. Let’s start.

Watson Language Translator API

In this section you will learn how to start with the IBM Cloud and launch the Watson Language Translator API. The Language Translator API allows to translate one language to another language. Other API features include detecting the what language was entered. To learn more about the API here.

Continue reading “How to Invoke the Watson Language Translator API from an Appery.io App”

Supercharge Your APIs with OpenAPI: Lunch and Learn – Video Recording

Last week the IBM Developer Advocates team hosted another Lunch-and-Learn event. Erin McKean covered the OpenAPI spec (formerly known as Swagger), what it is, and how using the spec makes it easier to plan, create, test, and share your APIs?
If you missed the event, you can watch the live-streamed version below.  The session covered:
  • What is the OpenAPI spec?
  • How can you create an OpenAPI description for your new or existing API?
  • What can you do with your OpenAPI description—including automated testing, code generation, creating interactive documentation, and more!
  • How you can get involved with the spec and how to share the benefits of OpenAPI with your team

Part 1:

Part 2:

Looking for more events like this – check out our upcoming events in San Francisco and the South Bay.

Containers (Microservices) 101: Lunch and Learn – Video Recording

In September we hosted another successful Lunch and Learn event. This time we covered Containers 101 (Microservices) and of course we served a delicious lunch.  If you are in San Francisco, definitely consider coming to our next free event.

Here is what Andy Shi and Anthony Amanse, our in-house Containers experts covered:

  • What is a Container (Microservice), how it works and what are its benefits?
  • Explain the 12-factors app, a modern methodology for building software-as-a-service apps, and how to get there
  • What transitions are needed to get from monolithic architecture to micro-services app using Containers (Microservices)
  • The Docker build command, demonstrating the Docker repo and images
  • How to use Cloud Foundry (Bluemix) “cf” command to push and run a container

If you missed the event or simply would like to watch the recoding, check it out below.

Blockchain 101: Lunch and Learn – Video Recording

At the end of August we hosted a Blockchain 101 – Lunch and Learn event in Galvanize in San Francisco. It’s a very informal, easy going, educational lecture on an interesting topic. Our first one was on Blockchain. And of course we provide a delicious lunch.

Everyone is talking about Blockchain. You hear about Blockchain on the news and everywhere else. We think not many people understand what Blockchain is, how it works and what are the benefits. This exactly why we host these educational sessions. Plus, you need to eat lunch anyways.

We streamed the Blockchain 101 Lunch and Learn and below you will find links to the recordings (the same session broken into two “streams”).

Want to learn or attend our upcoming events, check them out here.

Learn How to Build a Chatbot – Hands-on Developer Workshop

We are hosting another technical workshop, this time on how to build your first chatbot.  If this sounds interesting please register as space is limited.

Description

In this technical hands-on workshop you will learn how to build your first chatbot and then integrate it with Slack. In this session you will learn and build:

  • How to train your chatbot to reply to questions using intents, entities, dialog
  • How to customize your chatbot to reply to more questions
  • How to integrate your chatbot with Slack using OpenWhisk

The chatbot will be built using Watson Conversation.

This is not your typical meetup, this is a technical hands-on workshop where you will learn how to build your first chatbot. This workshop is free but please register to reserve your space now.

Schedule

6:00-6:30pm: Light dinner and registration
6-30-8:30pm: Build your first chatbot workshop

Register

Yes, I want to build my first chatbot

Learn How to Build IoT Apps with Node-RED, Watson AI Services – in this Hands-On Workshop

Workshop Social Tile-01

Learn how to build your first IoT application using Node-RED and IBM Watson Services. This workshop will begin with an introduction to Node-RED, a browser-based graphical flow editor of drag-n-drop blocks (called a node) of functionality. Node-RED (nodered.org) is an open-source community project built on top of the Node.js runtime. The workshop will dive into the Watson IoT dashboard to visualize data and Node-RED dashboard to build a UI interface.

AGENDA

12:00 – 12:50pm: Registration and Lunch
12:50 – 1:00: Intro/welcome from Max Katz, IBM Program Director, Developer Advocacy (@maxkatz)
1:00 – 1:30: Let’s Learn about Node-RED, JeanCarl Bisson, IBM Developer Advocate – Bluemix/Watson Developer Ecosystem (@dothewww)
1:30 – 2:30: IoT Starter Lab
2:30 – 3:00: Break
3:00 – 4:00: Watson IoT Dashboard
4:00 – 5:00: Node-RED Dashboard and Advanced Topics

After the workshop, stay for pizza, beer and learn about What’s New In JavaScript: Learn about Distributed Ledgers, IoT and Node-RED.

I’m an IBMer!

About four weeks ago I officially became an IBMer! I joined as San Francisco City Lead for Developer Advocacy.

Some of you are probably wondering why IBM? IBM is big, slow and boring. IBM is very big but it’s not slow or boring. IBM is over a 100 years old and it has repeatedly reinvented itself over and over — in one of the most competitive spaces: technology. Not many companies have done that.

History is great but that’s still not the reason to join a company. Number one is the people. IBMers are like one big family. People are awesome and smart. Always ready to help. I will be working with a team of awesome developer advocates, we will be running educational workshops, attending meetups, conferences, hold office hours and everything in between.  I will be working with teams who work with startups, enterprises, open source and education. I will also have a chance to work with VC companies, incubators and accelerators.

Our goal is to make you a better developer. We want to help you do your job faster and make your job easier. And that’s regardless if you go with IBM technology or not. Our job is to help you, the developer.

The second reason is the wide range of technologies and tools IBM has and has created. There are very few companies out there where you will be exposed to such wide range of technologies. We will be working on Watson, IoT, Containers, Blockchain, Serverless, Bluemix and other technologies.

It’s exciting and exciting time to be a developer!

Please reach out to say hi or if you think we can do something cool together.

My Last Day at Appery.io

Conference badges

Friday, May 5th 2017 was my last day at Appery.io. I’m taking a small break right now and will be starting my next adventure next week.

How to Send a Fax with Appery.io and Twilio Fax API

Twilio launched a new API that allows sending faxes. From the very start Appery.io platform made it very simple to connect to any external REST API. We love Twilio API and have an example and video on how to use the SMS API. The Fax API is as elegant and simple to use. In this blog post you will learn how to send a fax using the Twilio Fax API from a Server Code script.

Create a new Server Code script and copy the following script:

var url = "https://fax.twilio.com/v1/Faxes";
var accountSid = "AC3526fbeed7...............";
var token = "8703513246d3f445e............";
var to = "To number";
var from = "Your Twilio number"
var mediaUrl = "https://www.twilio.com/docs/documents/25/justthefaxmaam.pdf";

var XHRResponse = XHR2.send("POST", url, {
   "body": "To=" + encodeURIComponent(to) + "&From=" + encodeURIComponent(from) + "&MediaUrl="+mediaUrl,
   "headers": {
      Authorization: "Basic " + encodeBase64(accountSid + ":" + token),
      "Content-Type": "application/x-www-form-urlencoded"
   }
});

Apperyio.response.success(XHRResponse.body, "application/json");

The script is simple and does a POST request to the Twilio Fax API.

Line 1 is the Twilio Fax API endpoint.

Line 2 and 3 are Twilio Account SID and Auth Token. You can get both from the console dashboard.

Line 4 is where to send the fax (number).

Line 5 is your Twilio number.

Line 6 is a link to a document you want to fax. You can set it to any PDF file accessible via a direct link (or use the sample one provided by Twilio).

Line 8 is where the POST request is invoked with all the information.

Twilio Fax API uses Basic Authentication so the Account SID and Auth Token need to be encoded as Base64. There is an out-of-the-box plug-in that you can add to your account. The plug-in has a function to encode a string as Base64.

  1. Open the dropdown list (on the left) and select Back to list.
  2. Open the Plugins tab.
  3. Find the EncodeBase64 plugin and click insert to add it to your account. The plugin will be listed in the Library section. You can now use it in any other script.
  4. One more step is to add this library as a dependency for your script. Open that script you created. Go to Dependencies tab and click on EncodeBase64_Library.

You are ready to test the script.

Go back to the Script tab and open the Run tab (on the right). Click on Save and run button to invoke the API and send the fax.

The response should look like this:

{
   "date_updated": "2017-04-06T13:13:40Z",
   "date_created": "2017-04-06T13:13:40Z",
   "num_pages": null,
   "api_version": "v1",
   "media_url": null,
   "url":
   "https://fax.twilio.com/v1/Faxes/FX225bab5034cb8a335c45...............",
   "sid": "FX225bab5034cb8a335c45...............",
   "quality": "fine",
   "duration": null,
   "price_unit": null,
   "price": null,
   "account_sid": "AC3526fbeed7...............",
   "from": "+1415xxxxxxx",
   "to": "+1925xxxxxxx",
   "status": "queued",
   "direction": "outbound"
}

You can navigate to the URL set in the url attribute – there you will be able to see the status of the sent fax (the browser will ask you to login, use the Account SID and Auth Token values).

It can take a few minutes for the fax to be delivered, keep that in mind when testing. If you fax the pre-set PDF file then yon you will the following fax:

twilio-just-the-fax-man
Twilio sample fax

To learn more about Server Code check the Appery.io YouTube playlist. Happy faxing.