ankoder 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/Manifest.txt +1 -0
- data/README.txt +1 -1
- data/lib/ankoder.rb +1 -1
- data/lib/ankoder/upload.rb +10 -0
- data/lib/ankoder/version.rb +1 -1
- data/website/index.html +31 -26
- metadata +3 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
|
data/lib/ankoder.rb
CHANGED
@@ -6,7 +6,7 @@ require "cgi"
|
|
6
6
|
module Ankoder
|
7
7
|
HOST = "api.ankoder.com" unless const_defined? :HOST
|
8
8
|
OUT_FORMAT = "xml" unless const_defined? :OUT_FORMAT
|
9
|
-
RESOURCES = %w{job profile download video account} unless const_defined? :RESOURCES
|
9
|
+
RESOURCES = %w{job profile download video account upload} unless const_defined? :RESOURCES
|
10
10
|
DEFAULT_EXPIRY = 300 unless const_defined? :DEFAULT_EXPIRY
|
11
11
|
|
12
12
|
# These are error codes you receive if you use ping options
|
data/lib/ankoder/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -33,36 +33,40 @@
|
|
33
33
|
<h1>ankoder</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/ankoder"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/ankoder" class="numbers">0.0.
|
36
|
+
<a href="http://rubyforge.org/projects/ankoder" class="numbers">0.0.2</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘ankoder’</h1>
|
39
39
|
|
40
40
|
|
41
41
|
<h2>What</h2>
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
42
|
+
<p>ankoder is a service provided by rorcraft that allows you convert a Video of any format (YouTube's videos,etc) to MPEG4 (AVI/MOV/MP4/MP3/3GP) or FLV file online. And this gem is to provide the API for you to send request to our video encoding server.</p>
|
43
|
+
<h2>Installing</h2>
|
44
|
+
|
45
|
+
|
46
|
+
<pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">ankoder</span></pre>
|
47
|
+
<h2>The basics</h2>
|
48
|
+
<p>As this service is still in private beta stage, for every developer start to use this api , have to apply for the private testing account. To apply the testing account, please fill in the form in <a href="http://free.ankoder.com/">http://free.ankoder.com/</a> .</p>
|
49
|
+
<h2>Demonstration of usage</h2>
|
50
|
+
<p>After we have approved the application , we will assign the username and password to login the service, for example, api_user as username , and api_passowrd as password.</p>
|
51
|
+
<h4>Add the following lines to ApplicationController</h4>
|
52
|
+
<p>require "ankoder"<br />
|
53
|
+
include "Ankoder"</p>
|
54
|
+
<h4>To create a user session<br />
|
55
|
+
</h4>
|
56
|
+
<p>user = Auth.create("api_user", "api_password")</p>
|
57
|
+
<h4>To list out the available converting profile</h4>
|
58
|
+
<p>profiles = user.profiles.find(:all)</p>
|
59
|
+
<h4>To download a video from Youtube</h4>
|
60
|
+
<p>download = user.downloads.create('url' =>"http://www.youtube.com/watch?v=Sex4w4h7Tqk") </p>
|
61
|
+
<h4>To create a job to convert a video file</h4>
|
62
|
+
<p>convert_job.create(:video_id =>download.id , :profile_id => profile.id )</p>
|
63
|
+
<h2>Forum</h2>
|
57
64
|
|
58
65
|
|
59
66
|
<p><a href="http://groups.google.com/group/ankoder">http://groups.google.com/group/ankoder</a></p>
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<h2>How to submit patches</h2>
|
67
|
+
<h2>Our development Blog</h2>
|
68
|
+
<p><a href="http://devblog.rorcraft.com/">http://devblog.rorcraft.com/</a></p>
|
69
|
+
<h2>How to submit patches</h2>
|
66
70
|
|
67
71
|
|
68
72
|
<p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people’s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
|
@@ -80,11 +84,12 @@
|
|
80
84
|
<h2>Contact</h2>
|
81
85
|
|
82
86
|
|
83
|
-
<p>Comments are welcome. Send an email to <a href="mailto:
|
87
|
+
<p>Comments are welcome. Send an email to <a href="mailto:info@rorcraft.com">info@rorcraft.com</a></span> or via the <a href="http://groups.google.com/group/ankoder">forum</a></p>
|
84
88
|
<p class="coda">
|
85
|
-
<a href="FIXME email">
|
86
|
-
|
87
|
-
|
89
|
+
<a href="FIXME email"></a>Ankoder, a service by RoRCraft Limited,<br />
|
90
|
+
Last Updated :
|
91
|
+
27th February 2008<br>
|
92
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a> </p>
|
88
93
|
</div>
|
89
94
|
|
90
95
|
<!-- insert site tracking codes here, like Google Urchin -->
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ankoder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ""
|
6
6
|
authors:
|
7
7
|
- RoRCraft.com
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
iplROzUF++Prmx2JGuO6kA==
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2008-02
|
33
|
+
date: 2008-04-02 00:00:00 +08:00
|
34
34
|
default_executable:
|
35
35
|
dependencies: []
|
36
36
|
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/ankoder/ext.rb
|
65
65
|
- lib/ankoder/job.rb
|
66
66
|
- lib/ankoder/profile.rb
|
67
|
+
- lib/ankoder/upload.rb
|
67
68
|
- lib/ankoder/version.rb
|
68
69
|
- lib/ankoder/video.rb
|
69
70
|
- log/debug.log
|
metadata.gz.sig
CHANGED
Binary file
|