Project

sambatech

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A simple hello world gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0.11
~> 2.11.0
~> 1.6

Runtime

< 0.9, >= 0.8.4
< 0.10, >= 0.9.0
~> 1.2.0
~> 0.5.1
~> 0.3.2
 Project Readme

sambatech Build Status

A Ruby wrapper for the Sambatech REST and Search APIs

History

I've made this Gem, because i need to migrate from Sambatech to an internal video plataform. This Gem don't support Sambatech API methods only the methods that I needed for the migration. All patchs/pull-requests are welcome :)

Example of use:

  require "rubygems"
  require "sambatech"

  Sambatech.configure do |config|
    config.key = 'config_key'
    config.endpoint = "http://sambatech_api/2.0/"
  end

  client = Sambatech.client()

Get all medias that belongs to the categorie 42, and the media status is active

  medias = client.all_medias({
            :filter => 'id;title',
            :search => "channelId:42;status:active",
            :recursiveChannel => 'true',
            :first => 0,
            :limit => 2
  })

Get a specific media info by id

  media = client.media('8a4980263260ee801423cad08f11bcd',{})

Get Media file url

  media_file = client.media_file_url(media.files.file.id,{})

Get channel info, parent

  channel = client.channel(channel_id,{})

Support

@lornlab at twitter

Please file issues here at Github