Giter Club home page Giter Club logo

kintone_transrec's Introduction

kintone_transrec

A barebones Node.js app using Express 4.

概要

クラウド型留守番電話サービス「TRANSREC」のRESTful APIを利用して、Kintoneに録音されたデータを登録するデモプログラムです。 留守番電話が録音されたら、TRANSRECからのPing通知をトリガーにして、テキストデータと音声データをKintoneに保存します。

準備

  • Node.js のインストール。
  • TRANSRECの申し込み。
  • Kintoneの申し込み。
  • インターネット上で公開可能なサーバ(デモプログラムの実行場所)。

インストール

1.githubからサーバー上の任意のフォルダにソースコードをダウンロードします。

$ git clone [email protected]:mobilebiz/kintone_transrec.git # or clone your own fork
$ cd kintone_transrec
$ npm install

2.TRANSRECのAPIキー(SID、Token)を取得し、/config/default.json 内のtransrecセクション内に記載します。 APIキーの取得方法については、こちらを参照してください。 なお、Ping通知設定欄の「Ping通知先」については、以下の通りに設定します。

  • プロトコル: http
  • ポート番号: 3000
  • メソッド: POST
  • 接続先ホスト: このプログラムを実行するサーバ(例:www.hoge.com
  • 接続先パス: /ping
  • 発信者通知: OFF
  • 着信番号通知: OFF

3.Kintone側でアプリを作成し、録音データを格納するためのフォームを作成します。 フォームの名前と内容は以下のように設定してください。

  • 着信日時(データタイプ:日時、フィールドコード:calledDate)
  • 発信者番号(データタイプ:文字列(1行)、フィールドコード:phoneNum)
  • メッセージ(データタイプ:文字列(複数行)、フィールドコード:message)
  • 音声データ(データタイプ:リンク(URL)、フィールドコード:mp3) 作成したアプリのホスト名(例:hogehoge.cybozu.com)とKintoneのIDとパスワードを、/config/default.json内の、kintoneセクション内に記載します。

プログラムの起動

$ npm start

3000番ポートでWebサーバーが起動しますので、APIキーを取得したTRANSRECアカウントに留守番電話を吹き込みます。

音声データ(mp3)は、public/mp3フォルダ内に作成されています。

ドキュメント

kintone_transrec's People

Contributors

mobilebiz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.