Skip to content

kwright15/devops-insights-20210129013414606

Repository files navigation

Call and Crawl Python Server

This Python Flask server provides two REST endpoints.

  1. POST a list of phone numbers to call with Twilio
  2. POST a URL to crawl for Watson Discovery

Steps

  1. Create the IBM Cloud services
  2. Deploy the server
  3. Use the REST services

Create the IBM Cloud services

Provision the following services:

  • Watson Discovery
  • Watson Assistant
  • Db2

TODO: Twilio setup

Create the service instances If you do not have an IBM Cloud account, register for a free trial account here.

  • Click here to create a Watson Discovery instance.
  • (optional) Click here to create a Db2 instance.
  • (optional) Click here to create a Watson Assistant instance.

Gather credentials

  1. From the main navigation menu (☰), select Resource list to find your services under Services.
  2. Click on each service to find the Manage view where you can collect the API Key and URL to use for each service when you configure credentials.

Deploy the server

Click on one of the options below for instructions on deploying the Node.js server.

cf local

License

This code pattern is licensed under the Apache License, Version 2. Separate third-party code objects invoked within this code pattern are licensed by their respective providers pursuant to their own separate licenses. Contributions are subject to the Developer Certificate of Origin, Version 1.1 and the Apache License, Version 2.

Apache License FAQ

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •