tencentcloud-sdk-ruby 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25511cf9fe38372b9a86f1fcaaee0a8e4904099ef4c195fef193a737e8b05a2f
4
- data.tar.gz: 190e111e10d523adc06b57fa9b84b8dc78b2c6034fc24c482c38abd59d2b5024
3
+ metadata.gz: '0594512f5719b5ff7afc0f7a8d247df73b89ca649e58f4999c50508999ae4499'
4
+ data.tar.gz: b8ef33c6e853c32fd36b7285ba2417a5dfbc9cf210f1573c8940c3c3a7f4a3cc
5
5
  SHA512:
6
- metadata.gz: 4ee550925f47810de542d09d3b64c9beb45a26b57467dd851389a007d90e16de59bd2e894d239c2fa570b26bd8519b762090a68c3f5335607d3c03b1814dfcd2
7
- data.tar.gz: 8230ed2680ccd8b3b0ee9abe78b0505ad653510a0ca836aaf1b4986c3aa192410811260251501d042fd338bad418ea1d72ed11566be80067b4b9a0686e75cf25
6
+ metadata.gz: ac82dd64ce1e9c4541ee90f02afcebcf4a8be63b90edbc2464038ac131b46b243e2cf7481874d2295b83ff73ac82ce3b02c540ab5a712ca7d47dff36f93d9b8e
7
+ data.tar.gz: f985fe3c4346d03dec5801b32443b91f8275b35486b87ea9655f36e0136c8063ec3c3d678a75c2bc87a2630c3f1f3100bc8e35c14413432a683fe6cbd4b28436
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tencentcloud-sdk-ruby (0.3.1)
4
+ tencentcloud-sdk-ruby (0.3.2)
5
5
  typhoeus (~> 1.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/tencent_cloud`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
@@ -22,8 +20,15 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
26
-
23
+ ```ruby
24
+ require 'tencent_cloud/ocr/v20181119/ocr_client'
25
+ credential = TencentCloud::Common::Credential.new(SECRET_ID, SECRET_KEY)
26
+ payload = {
27
+ 'ImageUrl' => 'IMAGE URL'
28
+ }
29
+ resp = TencentCloud::OcrClient.new(credential, 'ap-beijing').business_card_ocr(payload)
30
+ pp JSON.parse(resp.body)
31
+ ```
27
32
  ## Development
28
33
 
29
34
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TencentCloud
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - FengCe