Sha256: 0e9e27380ac7213b9b959f90034cf97f605677cf879cdced23a2e50ca8f29e0c
Contents?: true
Size: 1.87 KB
Versions: 2
Compression:
Stored size: 1.87 KB
Contents
module GroupDocs class Post < Api::Entity # Rename by post. # # @param [Hash] options # @option file_id [String] :file_id # @option new_name [String] :new_name # @option user_id [String]:user_id # @return [Array] # def self.rename!(options = {}) api = Api::Request.new do |request| request[:method] = :POST request[:path] = '/post/file.rename' end api.add_params(options) json = api.execute! new(json) end # Delete by post. # # @param [Hash] options # @option file_id [String] :file_id # @option user_id [String]:user_id # @return [Array] # def self.delete!(options = {}) api = Api::Request.new do |request| request[:method] = :POST request[:path] = '/post/file.delete' end api.add_params(options) json = api.execute! new(json) end # Delete from folder by post. # # @param [Hash] options # @option user_id [String] :user_id # @option path [String] :path # @return [Array] # def self.delete_from_folder!(options = {}) api = Api::Request.new do |request| request[:method] = :POST request[:path] = '/post/file.delete.in' end api.add_params(options) json = api.execute! new(json) end # Compress by post. # # @param [Hash] options # @option user_id [String] :user_id # @option file_id [String] :file_id # @option archive [String] :archive_type # @return [Array] # def self.compress!(options = {}) api = Api::Request.new do |request| request[:method] = :POST request[:path] = '/post/file.compress' end api.add_params(options) json = api.execute! new(json) end end # Post end # GroupDocs
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
groupdocs-1.5.5 | lib/groupdocs/post.rb |
groupdocs-1.5.4 | lib/groupdocs/post.rb |