Project

youtu

0.0
No commit activity in last 3 years
No release in over 3 years
Tencent Youtu ruby SDK
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
>= 5.1
~> 10.0
~> 3.0

Runtime

<= 5.2, >= 4.2
~> 2.0.2
>= 0
 Project Readme

Youtu

Build Status

http://open.youtu.qq.com/

Installation

Add this line to your application's Gemfile:

gem 'youtu'

And then execute:

$ bundle

Or install it yourself as:

$ gem install youtu

Run the generator

rails g youtu:install

rails g youtu:install will generated the youtu.rb intializer file in config/initializers/youtu.rb

Signature's default store is File storage,but you can using Redis to store signature(optional)

rails g youtu:redis_store

rails g youtu:install will generated the youtu.rb initializer file in config/initializers/youtu_redis_store.rb

Usage

And then you can refer to the following example to use it.

  image_url_params = {
    url: "imagePath"
    mode: 1
  }

  Youtu::Request.post("/youtu/api/detectface",image_url_params) do |response,request,result|
    data = JSON.parse(response.body)
  end

For more infomation, please read https://open.youtu.qq.com/welcome/developer#/api-summary

Contributing

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