kickstarter/chilling_effects

Name: chilling_effects

Owner: Kickstarter

Description: A Ruby gem to interact with the Chilling Effects API

Created: 2015-07-07 12:48:45.0

Updated: 2017-07-13 18:56:56.0

Pushed: 2017-07-13 18:59:30.0

Homepage: null

Size: 64

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Chilling Effects Ruby Gem

A Ruby Gem for interacting with the Chilling Effects notice API

Installation

gem install chilling_effects

or via Bundler, add to your Gemfile:

gem 'chilling_effects'

Usage
Configuring your API token
lingEffects.token = "MY SUPER SECRET TOKEN"
Specifying a non-standard host server
lingEffects.server = "http://localhost:8000"
Getting a list of topics
lingEffects.topics
{:id=>1, :name=>"Chilling Effects", :parent_id=>nil},
d=>3, :name=>"Fan Fiction", :parent_id=>nil},
d=>4, :name=>"References", :parent_id=>nil},
d=>5, :name=>"Copyright", :parent_id=>nil},
d=>6, :name=>"Trademark", :parent_id=>nil},
d=>7, :name=>"Bookmarks", :parent_id=>nil},...]
Finding a notice by ID
lingEffects::Notice.find(300000497)
:topic_ids=>[],
tity_notice_roles_attributes=>[],
le_uploads_attributes=>[],
pics=>["Chilling Effects", "Right of Publicity", "E-Commerce Patents"],
rks_attributes=>
:infringing_urls_attributes=>
 [{:url=>"http://example.com/bad/url_88"},
  {:url=>"http://example.com/bad/url_87"},...]
pyrighted_urls_attributes=>[{:url=>"http://example.com/original_work/url_0"}],
scription=>"Batman Video"}],
risdiction_list=>["JP"],
=>300000497,
pe=>"Dmca",
tle=>"Batman",
dy=>nil,
te_sent=>"2014-05-26T18:09:50Z",
te_received=>"2014-06-16T18:09:50Z",
nder_name=>"Joe Lawyer",
incipal_name=>"Steve Simpson",
cipient_name=>"Google",
gs=>["snakes", "disney", "movie"],
tion_taken=>nil,
nguage=>"ht"}
Submitting a notice
 = ChillingEffects::Work.new({
ind             => "Software",
escription      => "Some awesome thing",
opyrighted_urls => [
:url => "http://foo.com"

nfringing_urls  => [
:url => "http://bar.com"


ce = ChillingEffects::Notice.new({
itle => "Foo Notice",
ype => "Dmca",
opic_ids => [1,2,3],
orks => [ work ]

ce.submit
API Documentation

For more information, see The Chilling Effects API Documentation


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.