Sha256: ff5b4e964b9c57e68aaa0c5657a527d8f4e86ac653c41f5ff929a671f05d5742

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

module AliyunGreen
  module Text
    def self.scan(content, data_id = nil)
      tasks = [
        {
          dataId: data_id,
          content: content
        }
      ]

      response = AliyunGreen.client.post('/green/text/scan', tasks)

      response
    end

    def self.bulk_scan
      # TODO
    end
    
    def self.feedback
      # TODO
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aliyun_green-0.1.1 lib/aliyun_green/text.rb