No commit activity in last 3 years
No release in over 3 years
gem provides platformcraft filespot api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
 Project Readme

Build Status

Filespot API Ruby Gem

A Ruby wrapper for the Filespot API

http://doc.platformcraft.ru/filespot/api/

Installation

gem install platformcraft-filespot

Configuration

Filespot.configure do |config|
  config.url = 'api.platformcraft.ru'
  config.version = 1
  config.apikey = '12345'
  config.apiuserid = '12345'
end

Example

require 'filespot'

Filespot.configure do |config|
  config.apiuserid = '12345'
  config.apikey = '12345'
end

file = File.open('example.txt')

object = Filespot::Client.post_object(file)
puts object.name #example.txt

objects = Filespot::Client.get_objects
puts objects.count # 1
puts objects.map(&:name) # example.txt