tencentcloud-sdk-ruby 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -4
- data/lib/tencent_cloud/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0594512f5719b5ff7afc0f7a8d247df73b89ca649e58f4999c50508999ae4499'
|
4
|
+
data.tar.gz: b8ef33c6e853c32fd36b7285ba2417a5dfbc9cf210f1573c8940c3c3a7f4a3cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac82dd64ce1e9c4541ee90f02afcebcf4a8be63b90edbc2464038ac131b46b243e2cf7481874d2295b83ff73ac82ce3b02c540ab5a712ca7d47dff36f93d9b8e
|
7
|
+
data.tar.gz: f985fe3c4346d03dec5801b32443b91f8275b35486b87ea9655f36e0136c8063ec3c3d678a75c2bc87a2630c3f1f3100bc8e35c14413432a683fe6cbd4b28436
|
data/Gemfile.lock
CHANGED
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
|
-
|
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.
|