Git Product home page Git Product logo

talk_api's Introduction

TalkApi

Gem Version

Client library for (talk API)[http://a3rt.recruit-tech.co.jp/product/talkAPI/]

Installation

Add this line to your application's Gemfile:

gem 'talk_api'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install talk_api

Usage

First, (Register API KEY for Talk API)[http://a3rt.recruit-tech.co.jp/product/talkAPI/registered/]

require 'talk_api'

Run Talk API

client = TalkApi::Client.new(api_key: '<API KEY>') # TalkApi::Client instance
response = client.smalltalk('<messages>')          # Send text to API and return a response
response.success?                                  # true or false
response.first_message                             # Return a text message

Example

client = TalkApi::Client.new(api_key: 'valid api key')
response = client.smalltalk('あのイーハトーヴォのすきとほった風、夏でも底に冷たさをもつ青いそら')
response.first_message
=> "それはいいですね"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ryonkn/talk_api.

License

The gem is available as open source under the terms of the MIT License.

talk_api's People

Contributors

ryonkn avatar

Stargazers

 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.