https://github.com/mikeralphson/ruby-pips3-api
An ActiveResource style wrapper for the PIPs3 API. Forked from a now-deleted BBC project.
https://github.com/mikeralphson/ruby-pips3-api
Last synced: 2 months ago
JSON representation
An ActiveResource style wrapper for the PIPs3 API. Forked from a now-deleted BBC project.
- Host: GitHub
- URL: https://github.com/mikeralphson/ruby-pips3-api
- Owner: MikeRalphson
- Created: 2016-08-07T15:09:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-07T15:11:47.000Z (almost 9 years ago)
- Last Synced: 2024-10-05T19:23:11.069Z (8 months ago)
- Language: Ruby
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
Awesome Lists containing this project
README
PIPs3 Ruby API
==============An ActiveResource style wrapper for the PIPs3 API.
Example usage
-------------```ruby
require "pips3-api"
require "pp"Pips3Api::Base.config = {
:endpoint => "https://api.test.bbc.co.uk/pips/api/v1",
:certificate_path => ENV["HTTPS_CERT_FILE"],
:proxy => ENV["HTTP_PROXY"],
}# Find as segment using its VCS item key
segment = Pips3Api::Segment.find('6B668360C2FD11E276E93C4A92EC9E7C01011008', :identifier_type => 'item_key')
pp segmentsegment = Pips3Api::Segment.find('3e4be9fb893c11da91960002a543bf45', :identifier_type => 'item_key')
pp segment# segment.release_title = ''
# segment.record_label = Time.now.to_s
# segment.track_number = nil
# segment.save!
```