Sha256: 5423a790ec734304c40ec65575d089341021f36088ea948402edc468a1359f2a

Contents?: true

Size: 805 Bytes

Versions: 3

Compression:

Stored size: 805 Bytes

Contents

require 'rest-client'
require 'json'
require_relative 'photos/get_market_upload_server'
require_relative 'photos/get_upload_server'
require_relative 'photos/save'
require_relative 'photos/save_market_photo'
require_relative 'photos/upload_image'

module VkApiSimple
  # Clients requests
  class Photos
    include VkApiSimple::Photos::GetMarketUploadServer
    include VkApiSimple::Photos::GetUploadServer
    include VkApiSimple::Photos::Save
    include VkApiSimple::Photos::SaveMarketPhoto
    include VkApiSimple::Photos::UploadImage

    BASE_URI = 'https://api.vk.com/method/photos.'.freeze
    VK_API_VERSION = '5.74'.freeze

    attr_reader :token, :api_version

    def initialize(args = {})
      @token = args[:token]
      @api_version = args[:api_version] || VK_API_VERSION
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vk_api_simple-0.2.3 lib/vk_api_simple/photos.rb
vk_api_simple-0.2.2 lib/vk_api_simple/photos.rb
vk_api_simple-0.2.1 lib/vk_api_simple/photos.rb