brightcove-api 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source :rubygems
3
3
  group :development do
4
4
  gem "bundler", "~> 1.0.0"
5
5
  gem "jeweler", "~> 1.5.1"
6
- gem "rcov", ">= 0"
6
+ gem "rcov", "~> 0.9.9"
7
7
  end
8
8
 
9
9
  group :test do
@@ -11,6 +11,6 @@ group :test do
11
11
  gem 'mocha'
12
12
  end
13
13
 
14
- gem 'httparty'
15
- gem 'json'
16
- gem 'rest-client'
14
+ gem 'httparty', "~> 0.6.1"
15
+ gem 'json', "~> 1.4.6"
16
+ gem 'rest-client', "~> 1.6.1"
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 David Czarnecki (Agora Games)
1
+ Copyright (c) 2010-2011 David Czarnecki
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md ADDED
@@ -0,0 +1,50 @@
1
+ brightcove-api
2
+ ==============
3
+
4
+ Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/
5
+
6
+ Requirements
7
+ ============
8
+
9
+ * HTTParty
10
+ * JSON
11
+ * FakeWeb (only for testing)
12
+
13
+ Install
14
+ =======
15
+
16
+ * sudo gem install brightcove-api
17
+
18
+ Example
19
+ =======
20
+
21
+ >> require 'brightcove-api'
22
+ => true
23
+ >> brightcove = Brightcove::API.new('0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.')
24
+ => #<Brightcove::API:0x114dbc8 @token="0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.", @api_url="http://api.brightcove.com/services/library">
25
+ >> response = brightcove.get('find_all_videos', {:page_size => 3, :video_fields => 'id,name,linkURL,linkText'})
26
+ => {"items"=>[{"name"=>"Documentarian Skydiving", "id"=>496518762, "linkText"=>nil, "linkURL"=>nil}, {"name"=>"Surface Tricks", "id"=>496518763, "linkText"=>nil, "linkURL"=>nil}, {"name"=>"Free Skiing", "id"=>496518765, "linkText"=>nil, "linkURL"=>nil}], "page_number"=>0, "page_size"=>3, "total_count"=>-1}
27
+ >> response = brightcove.get('find_all_videos', {:page_size => 5, :sort_by => 'PLAYS_TOTAL'})
28
+ => {"items"=>[{"longDescription"=>nil, "name"=>"Wild Slopes '06", "lastModifiedDate"=>"1171324523307", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d2/unsecured/media/270881183/270881183_502534829_94499905676eb7cd04a558da2adcf6a34f437b88.jpg?pubId=270881183", "tags"=>["adventure", "snowboarding"], "playsTrailingWeek"=>35, "shortDescription"=>"A ski and snowboard movie that challenges the hype and dares you to see what freeskiing and snowboarding have become. Documenting the very best of this year's riding and culture.", "playsTotal"=>4458, "adKeys"=>nil, "id"=>496518766, "length"=>51251, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d2/unsecured/media/270881183/270881183_502534838_f80fe64f052328cd3b2e158d7234003a23091845.jpg?pubId=270881183", "publishedDate"=>"1171324434811", "creationDate"=>"1171267200000", "linkText"=>nil, "economics"=>"FREE", "referenceId"=>"title010", "linkURL"=>nil}, {"longDescription"=>nil, "name"=>"Jellyfish", "lastModifiedDate"=>"1245181300374", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d7/unsecured/media/270881183/270881183_26530711001_jellyFish.jpg?pubId=270881183", "tags"=>["sea", "custom skins"], "playsTrailingWeek"=>46, "shortDescription"=>"Jellyfish", "playsTotal"=>4081, "adKeys"=>nil, "id"=>26512561001, "length"=>28400, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d7/unsecured/media/270881183/270881183_26519430001_vs-270881183-vid26513829001-img0000.jpg?pubId=270881183", "publishedDate"=>"1245172164326", "creationDate"=>"1245172164326", "linkText"=>nil, "economics"=>"AD_SUPPORTED", "referenceId"=>nil, "linkURL"=>nil}, {"longDescription"=>"Long Description", "name"=>"Demo Title 2", "lastModifiedDate"=>"1263581295791", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d2/unsecured/media/270881183/270881183_275925069_d1f97c7f07f2a3f4de7b38eda3761f16f39d2a99.jpg?pubId=270881183", "tags"=>[], "playsTrailingWeek"=>1, "shortDescription"=>"Short Description", "playsTotal"=>3876, "adKeys"=>nil, "id"=>276024035, "length"=>418742, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d2/unsecured/media/270881183/270881183_275943599_b7e2ca63c0311fa3f0b027304b41d252f12d2d66.jpg?pubId=270881183", "publishedDate"=>"1161296014264", "creationDate"=>"1161241200000", "linkText"=>"Related Link", "economics"=>"FREE", "referenceId"=>nil, "linkURL"=>"http://www.brightcove.com"}, {"longDescription"=>nil, "name"=>"Dolphins", "lastModifiedDate"=>"1263581295790", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d7/unsecured/media/270881183/270881183_26531197001_dolphins.jpg?pubId=270881183", "tags"=>["sea", "custom skins"], "playsTrailingWeek"=>30, "shortDescription"=>"Dolphins", "playsTotal"=>3870, "adKeys"=>nil, "id"=>26511963001, "length"=>12800, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d7/unsecured/media/270881183/270881183_26519372001_vs-270881183-vid26510372001-img0000.jpg?pubId=270881183", "publishedDate"=>"1245171732987", "creationDate"=>"1245171732987", "linkText"=>nil, "economics"=>"AD_SUPPORTED", "referenceId"=>nil, "linkURL"=>nil}, {"longDescription"=>nil, "name"=>"Welcome to Brightcove 3", "lastModifiedDate"=>"1225134261511", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d6/unsecured/media/270881183/270881183_1858983740_brightcove3-thumb.jpg?pubId=270881183", "tags"=>[], "playsTrailingWeek"=>0, "shortDescription"=>"Tareef Kawaf, Brightcove's SVP of Engineering, welcomes you to Brightcove 3.", "playsTotal"=>3349, "adKeys"=>nil, "id"=>1858922805, "length"=>53820, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d6/unsecured/media/270881183/270881183_1858994782_vid-StudioDashboards.jpg?pubId=270881183", "publishedDate"=>"1225134261508", "creationDate"=>"1224096089173", "linkText"=>nil, "economics"=>"AD_SUPPORTED", "referenceId"=>nil, "linkURL"=>nil}], "page_number"=>0, "page_size"=>5, "total_count"=>-1}
29
+ >> response = brightcove.post('delete_video', {:video_id => '595153263001'})
30
+ => {"result"=>{}, "id"=>nil, "error"=>nil}
31
+
32
+ If you want to perform a file upload, for example, to create a video, you can use the __post_file()__ method.
33
+
34
+ >> response = brightcove.post_file('create_video', '/path/to/video.mov', :video => {:shortDescription => 'Short Description', :name => 'Video name'})
35
+ => {"result"=>653155417001, "error=>nil, "id"=>nil}
36
+
37
+ Note on Patches/Pull Requests
38
+ =============================
39
+
40
+ * Fork the project.
41
+ * Make your feature addition or bug fix.
42
+ * Add tests for it. This is important so I don't break it in a
43
+ future version unintentionally.
44
+ * Commit, do not mess with rakefile, version, or history.
45
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
46
+ * Send me a pull request. Bonus points for topic branches.
47
+
48
+ Copyright
49
+ =========
50
+ Copyright (c) 2010 David Czarnecki. See LICENSE for details.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ require 'jeweler'
13
13
  Jeweler::Tasks.new do |gem|
14
14
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
15
  gem.name = "brightcove-api"
16
- gem.homepage = "http://github.com/agoragames/brightcove"
16
+ gem.homepage = "http://github.com/BrightcoveOS/Ruby-MAPI-Wrapper"
17
17
  gem.license = "MIT"
18
18
  gem.summary = %Q{Ruby gem for interacting with the Brightcove media API}
19
19
  gem.description = %Q{Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
@@ -5,23 +5,21 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{brightcove-api}
8
- s.version = "1.0.4"
8
+ s.version = "1.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Czarnecki"]
12
- s.date = %q{2010-12-27}
12
+ s.date = %q{2011-01-14}
13
13
  s.description = %q{Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/}
14
14
  s.email = %q{dczarnecki@agoragames.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.md"
18
18
  ]
19
19
  s.files = [
20
- ".document",
21
20
  "Gemfile",
22
- "Gemfile.lock",
23
21
  "LICENSE",
24
- "README.rdoc",
22
+ "README.md",
25
23
  "Rakefile",
26
24
  "VERSION",
27
25
  "brightcove-api.gemspec",
@@ -33,7 +31,7 @@ Gem::Specification.new do |s|
33
31
  "test/helper.rb",
34
32
  "test/test_brightcove-api.rb"
35
33
  ]
36
- s.homepage = %q{http://github.com/agoragames/brightcove}
34
+ s.homepage = %q{http://github.com/BrightcoveOS/Ruby-MAPI-Wrapper}
37
35
  s.licenses = ["MIT"]
38
36
  s.require_paths = ["lib"]
39
37
  s.rubygems_version = %q{1.3.7}
@@ -48,27 +46,27 @@ Gem::Specification.new do |s|
48
46
  s.specification_version = 3
49
47
 
50
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<httparty>, [">= 0"])
52
- s.add_runtime_dependency(%q<json>, [">= 0"])
53
- s.add_runtime_dependency(%q<rest-client>, [">= 0"])
49
+ s.add_runtime_dependency(%q<httparty>, ["~> 0.6.1"])
50
+ s.add_runtime_dependency(%q<json>, ["~> 1.4.6"])
51
+ s.add_runtime_dependency(%q<rest-client>, ["~> 1.6.1"])
54
52
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
55
53
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
56
- s.add_development_dependency(%q<rcov>, [">= 0"])
54
+ s.add_development_dependency(%q<rcov>, ["~> 0.9.9"])
57
55
  else
58
- s.add_dependency(%q<httparty>, [">= 0"])
59
- s.add_dependency(%q<json>, [">= 0"])
60
- s.add_dependency(%q<rest-client>, [">= 0"])
56
+ s.add_dependency(%q<httparty>, ["~> 0.6.1"])
57
+ s.add_dependency(%q<json>, ["~> 1.4.6"])
58
+ s.add_dependency(%q<rest-client>, ["~> 1.6.1"])
61
59
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
60
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
63
- s.add_dependency(%q<rcov>, [">= 0"])
61
+ s.add_dependency(%q<rcov>, ["~> 0.9.9"])
64
62
  end
65
63
  else
66
- s.add_dependency(%q<httparty>, [">= 0"])
67
- s.add_dependency(%q<json>, [">= 0"])
68
- s.add_dependency(%q<rest-client>, [">= 0"])
64
+ s.add_dependency(%q<httparty>, ["~> 0.6.1"])
65
+ s.add_dependency(%q<json>, ["~> 1.4.6"])
66
+ s.add_dependency(%q<rest-client>, ["~> 1.6.1"])
69
67
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
68
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
71
- s.add_dependency(%q<rcov>, [">= 0"])
69
+ s.add_dependency(%q<rcov>, ["~> 0.9.9"])
72
70
  end
73
71
  end
74
72
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brightcove-api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 4
10
- version: 1.0.4
9
+ - 5
10
+ version: 1.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Czarnecki
@@ -15,56 +15,59 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-27 00:00:00 -05:00
18
+ date: 2011-01-14 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :runtime
23
- prerelease: false
24
- name: httparty
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ requirement: &id001 !ruby/object:Gem::Requirement
26
23
  none: false
27
24
  requirements:
28
- - - ">="
25
+ - - ~>
29
26
  - !ruby/object:Gem::Version
30
- hash: 3
27
+ hash: 5
31
28
  segments:
32
29
  - 0
33
- version: "0"
34
- requirement: *id001
35
- - !ruby/object:Gem::Dependency
30
+ - 6
31
+ - 1
32
+ version: 0.6.1
36
33
  type: :runtime
34
+ name: httparty
37
35
  prerelease: false
38
- name: json
39
- version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ requirement: &id002 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
- - - ">="
41
+ - - ~>
43
42
  - !ruby/object:Gem::Version
44
- hash: 3
43
+ hash: 11
45
44
  segments:
46
- - 0
47
- version: "0"
48
- requirement: *id002
49
- - !ruby/object:Gem::Dependency
45
+ - 1
46
+ - 4
47
+ - 6
48
+ version: 1.4.6
50
49
  type: :runtime
50
+ name: json
51
51
  prerelease: false
52
- name: rest-client
53
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ requirement: &id003 !ruby/object:Gem::Requirement
54
55
  none: false
55
56
  requirements:
56
- - - ">="
57
+ - - ~>
57
58
  - !ruby/object:Gem::Version
58
- hash: 3
59
+ hash: 13
59
60
  segments:
60
- - 0
61
- version: "0"
62
- requirement: *id003
63
- - !ruby/object:Gem::Dependency
64
- type: :development
61
+ - 1
62
+ - 6
63
+ - 1
64
+ version: 1.6.1
65
+ type: :runtime
66
+ name: rest-client
65
67
  prerelease: false
66
- name: bundler
67
- version_requirements: &id004 !ruby/object:Gem::Requirement
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ requirement: &id004 !ruby/object:Gem::Requirement
68
71
  none: false
69
72
  requirements:
70
73
  - - ~>
@@ -75,12 +78,12 @@ dependencies:
75
78
  - 0
76
79
  - 0
77
80
  version: 1.0.0
78
- requirement: *id004
79
- - !ruby/object:Gem::Dependency
80
81
  type: :development
82
+ name: bundler
81
83
  prerelease: false
82
- name: jeweler
83
- version_requirements: &id005 !ruby/object:Gem::Requirement
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ requirement: &id005 !ruby/object:Gem::Requirement
84
87
  none: false
85
88
  requirements:
86
89
  - - ~>
@@ -91,21 +94,26 @@ dependencies:
91
94
  - 5
92
95
  - 1
93
96
  version: 1.5.1
94
- requirement: *id005
95
- - !ruby/object:Gem::Dependency
96
97
  type: :development
98
+ name: jeweler
97
99
  prerelease: false
98
- name: rcov
99
- version_requirements: &id006 !ruby/object:Gem::Requirement
100
+ version_requirements: *id005
101
+ - !ruby/object:Gem::Dependency
102
+ requirement: &id006 !ruby/object:Gem::Requirement
100
103
  none: false
101
104
  requirements:
102
- - - ">="
105
+ - - ~>
103
106
  - !ruby/object:Gem::Version
104
- hash: 3
107
+ hash: 41
105
108
  segments:
106
109
  - 0
107
- version: "0"
108
- requirement: *id006
110
+ - 9
111
+ - 9
112
+ version: 0.9.9
113
+ type: :development
114
+ name: rcov
115
+ prerelease: false
116
+ version_requirements: *id006
109
117
  description: Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/
110
118
  email: dczarnecki@agoragames.com
111
119
  executables: []
@@ -114,13 +122,11 @@ extensions: []
114
122
 
115
123
  extra_rdoc_files:
116
124
  - LICENSE
117
- - README.rdoc
125
+ - README.md
118
126
  files:
119
- - .document
120
127
  - Gemfile
121
- - Gemfile.lock
122
128
  - LICENSE
123
- - README.rdoc
129
+ - README.md
124
130
  - Rakefile
125
131
  - VERSION
126
132
  - brightcove-api.gemspec
@@ -132,7 +138,7 @@ files:
132
138
  - test/helper.rb
133
139
  - test/test_brightcove-api.rb
134
140
  has_rdoc: true
135
- homepage: http://github.com/agoragames/brightcove
141
+ homepage: http://github.com/BrightcoveOS/Ruby-MAPI-Wrapper
136
142
  licenses:
137
143
  - MIT
138
144
  post_install_message:
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
data/Gemfile.lock DELETED
@@ -1,33 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- crack (0.1.6)
5
- fakeweb (1.2.8)
6
- git (1.2.5)
7
- httparty (0.5.2)
8
- crack (= 0.1.6)
9
- jeweler (1.5.1)
10
- bundler (~> 1.0.0)
11
- git (>= 1.2.5)
12
- rake
13
- json (1.4.6)
14
- mime-types (1.16)
15
- mocha (0.9.10)
16
- rake
17
- rake (0.8.7)
18
- rcov (0.8.1.2.0)
19
- rest-client (1.6.1)
20
- mime-types (>= 1.16)
21
-
22
- PLATFORMS
23
- ruby
24
-
25
- DEPENDENCIES
26
- bundler (~> 1.0.0)
27
- fakeweb
28
- httparty
29
- jeweler (~> 1.5.1)
30
- json
31
- mocha
32
- rcov
33
- rest-client
data/README.rdoc DELETED
@@ -1,45 +0,0 @@
1
- = brightcove-api
2
-
3
- Ruby gem for interacting with the Brightcove media API. http://docs.brightcove.com/en/media/
4
-
5
- == Requirements
6
-
7
- * HTTParty
8
- * JSON
9
- * FakeWeb (only for testing)
10
-
11
- == Install
12
-
13
- * sudo gem install brightcove-api
14
-
15
- == Example
16
-
17
- >> require 'brightcove-api'
18
- => true
19
- >> brightcove = Brightcove::API.new('0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.')
20
- => #<Brightcove::API:0x114dbc8 @token="0Z2dtxTdJAxtbZ-d0U7Bhio2V1Rhr5Iafl5FFtDPY8E.", @api_url="http://api.brightcove.com/services/library">
21
- >> response = brightcove.get('find_all_videos', {:page_size => 3, :video_fields => 'id,name,linkURL,linkText'})
22
- => {"items"=>[{"name"=>"Documentarian Skydiving", "id"=>496518762, "linkText"=>nil, "linkURL"=>nil}, {"name"=>"Surface Tricks", "id"=>496518763, "linkText"=>nil, "linkURL"=>nil}, {"name"=>"Free Skiing", "id"=>496518765, "linkText"=>nil, "linkURL"=>nil}], "page_number"=>0, "page_size"=>3, "total_count"=>-1}
23
- >> response = brightcove.get('find_all_videos', {:page_size => 5, :sort_by => 'PLAYS_TOTAL'})
24
- => {"items"=>[{"longDescription"=>nil, "name"=>"Wild Slopes '06", "lastModifiedDate"=>"1171324523307", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d2/unsecured/media/270881183/270881183_502534829_94499905676eb7cd04a558da2adcf6a34f437b88.jpg?pubId=270881183", "tags"=>["adventure", "snowboarding"], "playsTrailingWeek"=>35, "shortDescription"=>"A ski and snowboard movie that challenges the hype and dares you to see what freeskiing and snowboarding have become. Documenting the very best of this year's riding and culture.", "playsTotal"=>4458, "adKeys"=>nil, "id"=>496518766, "length"=>51251, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d2/unsecured/media/270881183/270881183_502534838_f80fe64f052328cd3b2e158d7234003a23091845.jpg?pubId=270881183", "publishedDate"=>"1171324434811", "creationDate"=>"1171267200000", "linkText"=>nil, "economics"=>"FREE", "referenceId"=>"title010", "linkURL"=>nil}, {"longDescription"=>nil, "name"=>"Jellyfish", "lastModifiedDate"=>"1245181300374", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d7/unsecured/media/270881183/270881183_26530711001_jellyFish.jpg?pubId=270881183", "tags"=>["sea", "custom skins"], "playsTrailingWeek"=>46, "shortDescription"=>"Jellyfish", "playsTotal"=>4081, "adKeys"=>nil, "id"=>26512561001, "length"=>28400, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d7/unsecured/media/270881183/270881183_26519430001_vs-270881183-vid26513829001-img0000.jpg?pubId=270881183", "publishedDate"=>"1245172164326", "creationDate"=>"1245172164326", "linkText"=>nil, "economics"=>"AD_SUPPORTED", "referenceId"=>nil, "linkURL"=>nil}, {"longDescription"=>"Long Description", "name"=>"Demo Title 2", "lastModifiedDate"=>"1263581295791", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d2/unsecured/media/270881183/270881183_275925069_d1f97c7f07f2a3f4de7b38eda3761f16f39d2a99.jpg?pubId=270881183", "tags"=>[], "playsTrailingWeek"=>1, "shortDescription"=>"Short Description", "playsTotal"=>3876, "adKeys"=>nil, "id"=>276024035, "length"=>418742, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d2/unsecured/media/270881183/270881183_275943599_b7e2ca63c0311fa3f0b027304b41d252f12d2d66.jpg?pubId=270881183", "publishedDate"=>"1161296014264", "creationDate"=>"1161241200000", "linkText"=>"Related Link", "economics"=>"FREE", "referenceId"=>nil, "linkURL"=>"http://www.brightcove.com"}, {"longDescription"=>nil, "name"=>"Dolphins", "lastModifiedDate"=>"1263581295790", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d7/unsecured/media/270881183/270881183_26531197001_dolphins.jpg?pubId=270881183", "tags"=>["sea", "custom skins"], "playsTrailingWeek"=>30, "shortDescription"=>"Dolphins", "playsTotal"=>3870, "adKeys"=>nil, "id"=>26511963001, "length"=>12800, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d7/unsecured/media/270881183/270881183_26519372001_vs-270881183-vid26510372001-img0000.jpg?pubId=270881183", "publishedDate"=>"1245171732987", "creationDate"=>"1245171732987", "linkText"=>nil, "economics"=>"AD_SUPPORTED", "referenceId"=>nil, "linkURL"=>nil}, {"longDescription"=>nil, "name"=>"Welcome to Brightcove 3", "lastModifiedDate"=>"1225134261511", "thumbnailURL"=>"http://brightcove.vo.llnwd.net/d6/unsecured/media/270881183/270881183_1858983740_brightcove3-thumb.jpg?pubId=270881183", "tags"=>[], "playsTrailingWeek"=>0, "shortDescription"=>"Tareef Kawaf, Brightcove's SVP of Engineering, welcomes you to Brightcove 3.", "playsTotal"=>3349, "adKeys"=>nil, "id"=>1858922805, "length"=>53820, "videoStillURL"=>"http://brightcove.vo.llnwd.net/d6/unsecured/media/270881183/270881183_1858994782_vid-StudioDashboards.jpg?pubId=270881183", "publishedDate"=>"1225134261508", "creationDate"=>"1224096089173", "linkText"=>nil, "economics"=>"AD_SUPPORTED", "referenceId"=>nil, "linkURL"=>nil}], "page_number"=>0, "page_size"=>5, "total_count"=>-1}
25
- >> response = brightcove.post('delete_video', {:video_id => '595153263001'})
26
- => {"result"=>{}, "id"=>nil, "error"=>nil}
27
-
28
- If you want to perform a file upload, for example, to create a video, you can use the __post_file()__ method.
29
-
30
- >> response = brightcove.post_file('create_video', '/path/to/video.mov', :video => {:shortDescription => 'Short Description', :name => 'Video name'})
31
- => {"result"=>653155417001, "error=>nil, "id"=>nil}
32
-
33
- == Note on Patches/Pull Requests
34
-
35
- * Fork the project.
36
- * Make your feature addition or bug fix.
37
- * Add tests for it. This is important so I don't break it in a
38
- future version unintentionally.
39
- * Commit, do not mess with rakefile, version, or history.
40
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
41
- * Send me a pull request. Bonus points for topic branches.
42
-
43
- == Copyright
44
-
45
- Copyright (c) 2010 David Czarnecki. See LICENSE for details.