oauth-active-resource 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. data/.document +5 -0
  2. data/.gitignore +5 -0
  3. data/LICENSE +20 -0
  4. data/README.rdoc +7 -0
  5. data/Rakefile +49 -0
  6. data/VERSION.yml +4 -0
  7. data/doc/classes/Collection.html +205 -0
  8. data/doc/classes/Collection.src/M000001.html +22 -0
  9. data/doc/classes/Collection.src/M000002.html +18 -0
  10. data/doc/classes/Collection.src/M000003.html +18 -0
  11. data/doc/classes/Collection.src/M000004.html +18 -0
  12. data/doc/classes/Collection.src/M000005.html +18 -0
  13. data/doc/classes/OAuthActiveResource.html +165 -0
  14. data/doc/classes/OAuthActiveResource.src/M000006.html +63 -0
  15. data/doc/classes/OAuthActiveResource.src/M000007.html +20 -0
  16. data/doc/classes/OAuthActiveResource/Connection.html +158 -0
  17. data/doc/classes/OAuthActiveResource/Connection.src/M000012.html +19 -0
  18. data/doc/classes/OAuthActiveResource/Connection.src/M000013.html +18 -0
  19. data/doc/classes/OAuthActiveResource/Resource.html +233 -0
  20. data/doc/classes/OAuthActiveResource/Resource.src/M000008.html +20 -0
  21. data/doc/classes/OAuthActiveResource/Resource.src/M000009.html +19 -0
  22. data/doc/classes/OAuthActiveResource/Resource.src/M000010.html +32 -0
  23. data/doc/classes/OAuthActiveResource/Resource.src/M000011.html +31 -0
  24. data/doc/created.rid +1 -0
  25. data/doc/files/lib/oauth_active_resource/collection_rb.html +101 -0
  26. data/doc/files/lib/oauth_active_resource/connection_rb.html +101 -0
  27. data/doc/files/lib/oauth_active_resource/resource_rb.html +110 -0
  28. data/doc/files/lib/oauth_active_resource_rb.html +112 -0
  29. data/doc/fr_class_index.html +30 -0
  30. data/doc/fr_file_index.html +30 -0
  31. data/doc/fr_method_index.html +39 -0
  32. data/doc/index.html +24 -0
  33. data/doc/rdoc-style.css +208 -0
  34. data/lib/oauth_active_resource.rb +66 -0
  35. data/lib/oauth_active_resource/connection.rb +43 -0
  36. data/lib/oauth_active_resource/fake_oauth_access_token.rb +55 -0
  37. data/lib/oauth_active_resource/resource.rb +119 -0
  38. data/lib/oauth_active_resource/unique_resource_array.rb +87 -0
  39. data/oauth-active-resource.gemspec +86 -0
  40. data/spec/oauth_active_resource_spec.rb +24 -0
  41. data/spec/spec_helper.rb +30 -0
  42. metadata +126 -0
@@ -0,0 +1,63 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>register (OAuthActiveResource)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/oauth_active_resource.rb, line 7</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">register</span>(<span class="ruby-identifier">add_to_module</span>, <span class="ruby-identifier">model_module</span>, <span class="ruby-identifier">options</span> = {})
15
+
16
+ <span class="ruby-identifier">oauth_connection</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:access_token</span>]
17
+ <span class="ruby-identifier">site</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:site</span>]
18
+ <span class="ruby-comment cmt"># if options[:access_token].nil?</span>
19
+ <span class="ruby-comment cmt"># access_token = nil</span>
20
+ <span class="ruby-comment cmt"># if options[:site].nil?</span>
21
+ <span class="ruby-comment cmt"># raise 'Need an oauth :access_token or a :site'</span>
22
+ <span class="ruby-comment cmt"># else</span>
23
+ <span class="ruby-comment cmt"># site = options[:site]</span>
24
+ <span class="ruby-comment cmt"># end</span>
25
+ <span class="ruby-comment cmt"># else</span>
26
+ <span class="ruby-comment cmt"># if options[:site].nil?</span>
27
+ <span class="ruby-comment cmt"># site = access_token.consumer.site</span>
28
+ <span class="ruby-comment cmt"># else</span>
29
+ <span class="ruby-comment cmt"># site = options[:site]</span>
30
+ <span class="ruby-comment cmt"># end </span>
31
+ <span class="ruby-comment cmt"># end</span>
32
+
33
+ <span class="ruby-identifier">mod</span> = <span class="ruby-constant">Module</span>.<span class="ruby-identifier">new</span> <span class="ruby-keyword kw">do</span>
34
+ <span class="ruby-identifier">model_module</span>.<span class="ruby-identifier">constants</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">klass</span><span class="ruby-operator">|</span>
35
+ <span class="ruby-comment cmt"># TODO check if klass.is_a OAuthActiveResource</span>
36
+ <span class="ruby-identifier">sub</span> = <span class="ruby-constant">Class</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">model_module</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">klass</span>)) <span class="ruby-keyword kw">do</span>
37
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">site</span> = <span class="ruby-identifier">site</span>
38
+ <span class="ruby-ivar">@oauth_connection</span> = <span class="ruby-identifier">oauth_connection</span>
39
+ <span class="ruby-keyword kw">end</span>
40
+ <span class="ruby-identifier">const_set</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-identifier">sub</span>)
41
+ <span class="ruby-keyword kw">end</span>
42
+
43
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
44
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">name</span>)
45
+ <span class="ruby-keyword kw">rescue</span>
46
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
47
+ <span class="ruby-keyword kw">end</span>
48
+
49
+ <span class="ruby-keyword kw">end</span>
50
+
51
+ <span class="ruby-comment cmt"># Obscure (=Hash) token+secret, b/c it should stay one</span>
52
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">oauth_connection</span>.<span class="ruby-identifier">nil?</span>
53
+ <span class="ruby-identifier">dynamic_module_name</span> = <span class="ruby-value str">&quot;AnonymousConsumer&quot;</span>
54
+ <span class="ruby-keyword kw">else</span>
55
+ <span class="ruby-identifier">hash</span> = <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">hexdigest</span>(<span class="ruby-node">&quot;#{oauth_connection.token}#{oauth_connection.secret}&quot;</span>)
56
+ <span class="ruby-identifier">dynamic_module_name</span> = <span class="ruby-node">&quot;OAuthConsumer#{hash}&quot;</span>
57
+ <span class="ruby-keyword kw">end</span>
58
+
59
+ <span class="ruby-identifier">add_to_module</span>.<span class="ruby-identifier">const_set</span>(<span class="ruby-identifier">dynamic_module_name</span>, <span class="ruby-identifier">mod</span>)
60
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">mod</span>
61
+ <span class="ruby-keyword kw">end</span></pre>
62
+ </body>
63
+ </html>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>method_missing (OAuthActiveResource)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/oauth_active_resource.rb, line 36</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
15
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">const_get</span>(<span class="ruby-identifier">name</span>)
16
+ <span class="ruby-keyword kw">rescue</span>
17
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">name</span>,<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,158 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: OAuthActiveResource::Connection</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">OAuthActiveResource::Connection</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/oauth_active_resource/connection_rb.html">
59
+ lib/oauth_active_resource/connection.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ ActiveResource::Connection
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000013">get_without_decoding</a>&nbsp;&nbsp;
90
+ <a href="#M000012">new</a>&nbsp;&nbsp;
91
+ </div>
92
+ </div>
93
+
94
+ </div>
95
+
96
+
97
+ <!-- if includes -->
98
+
99
+ <div id="section">
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ <!-- if method_list -->
109
+ <div id="methods">
110
+ <h3 class="section-bar">Public Class methods</h3>
111
+
112
+ <div id="method-M000012" class="method-detail">
113
+ <a name="M000012"></a>
114
+
115
+ <div class="method-heading">
116
+ <a href="Connection.src/M000012.html" target="Code" class="method-signature"
117
+ onclick="popupCode('Connection.src/M000012.html');return false;">
118
+ <span class="method-name">new</span><span class="method-args">(oauth_connection, *args)</span>
119
+ </a>
120
+ </div>
121
+
122
+ <div class="method-description">
123
+ </div>
124
+ </div>
125
+
126
+ <h3 class="section-bar">Public Instance methods</h3>
127
+
128
+ <div id="method-M000013" class="method-detail">
129
+ <a name="M000013"></a>
130
+
131
+ <div class="method-heading">
132
+ <a href="Connection.src/M000013.html" target="Code" class="method-signature"
133
+ onclick="popupCode('Connection.src/M000013.html');return false;">
134
+ <span class="method-name">get_without_decoding</span><span class="method-args">(path, headers = {})</span>
135
+ </a>
136
+ </div>
137
+
138
+ <div class="method-description">
139
+ <p>
140
+ an alternative for the get method, which doesnt tries to decode the
141
+ response
142
+ </p>
143
+ </div>
144
+ </div>
145
+
146
+
147
+ </div>
148
+
149
+
150
+ </div>
151
+
152
+
153
+ <div id="validator-badges">
154
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
155
+ </div>
156
+
157
+ </body>
158
+ </html>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (OAuthActiveResource::Connection)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/oauth_active_resource/connection.rb, line 4</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">oauth_connection</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
15
+ <span class="ruby-ivar">@oauth_connection</span> = <span class="ruby-identifier">oauth_connection</span>
16
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>get_without_decoding (OAuthActiveResource::Connection)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/oauth_active_resource/connection.rb, line 10</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_without_decoding</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">headers</span> = {})
15
+ <span class="ruby-identifier">request</span>(<span class="ruby-identifier">:get</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">build_request_headers</span>(<span class="ruby-identifier">headers</span>, <span class="ruby-identifier">:get</span>))
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,233 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: OAuthActiveResource::Resource</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">OAuthActiveResource::Resource</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/oauth_active_resource/resource_rb.html">
59
+ lib/oauth_active_resource/resource.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ ActiveResource::Base
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="method-list">
86
+ <h3 class="section-bar">Methods</h3>
87
+
88
+ <div class="name-list">
89
+ <a href="#M000008">connection</a>&nbsp;&nbsp;
90
+ <a href="#M000010">has_many</a>&nbsp;&nbsp;
91
+ <a href="#M000009">load</a>&nbsp;&nbsp;
92
+ <a href="#M000011">send_multipart_request</a>&nbsp;&nbsp;
93
+ </div>
94
+ </div>
95
+
96
+ </div>
97
+
98
+
99
+ <!-- if includes -->
100
+
101
+ <div id="section">
102
+
103
+
104
+
105
+
106
+
107
+ <div id="attribute-list">
108
+ <h3 class="section-bar">Attributes</h3>
109
+
110
+ <div class="name-list">
111
+ <table>
112
+ <tr class="top-aligned-row context-row">
113
+ <td class="context-item-name">oauth_connection</td>
114
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
115
+ <td class="context-item-desc"></td>
116
+ </tr>
117
+ </table>
118
+ </div>
119
+ </div>
120
+
121
+
122
+
123
+ <!-- if method_list -->
124
+ <div id="methods">
125
+ <h3 class="section-bar">Public Class methods</h3>
126
+
127
+ <div id="method-M000008" class="method-detail">
128
+ <a name="M000008"></a>
129
+
130
+ <div class="method-heading">
131
+ <a href="Resource.src/M000008.html" target="Code" class="method-signature"
132
+ onclick="popupCode('Resource.src/M000008.html');return false;">
133
+ <span class="method-name">connection</span><span class="method-args">(refresh = false)</span>
134
+ </a>
135
+ </div>
136
+
137
+ <div class="method-description">
138
+ </div>
139
+ </div>
140
+
141
+ <div id="method-M000010" class="method-detail">
142
+ <a name="M000010"></a>
143
+
144
+ <div class="method-heading">
145
+ <a href="Resource.src/M000010.html" target="Code" class="method-signature"
146
+ onclick="popupCode('Resource.src/M000010.html');return false;">
147
+ <span class="method-name">has_many</span><span class="method-args">(*args)</span>
148
+ </a>
149
+ </div>
150
+
151
+ <div class="method-description">
152
+ <p>
153
+ <a href="Resource.html#M000010">has_many</a> allows resources with
154
+ sub-resources which arent nested to be accessable.
155
+ </p>
156
+ <p>
157
+ Example: User 123 (<a
158
+ href="http://example.com/users/123">example.com/users/123</a>/) has many
159
+ friends The list of friends can be accessed by <a
160
+ href="http://example.com/users/123/friends">example.com/users/123/friends</a>
161
+ Our class definition:
162
+ </p>
163
+ <pre>
164
+ class User &lt; Resource
165
+ has_many :friends
166
+ end
167
+
168
+ user = User.find(123)
169
+ user.friends.each do |friend|
170
+ p friend.name
171
+ end
172
+
173
+ # adding a friend
174
+ stranger = User.find(987)
175
+ user.friends &lt;&lt; stranger
176
+ user.friends.save
177
+ =&gt; sends a PUT with collection of friends to http://example.com/users/123/friends
178
+ </pre>
179
+ </div>
180
+ </div>
181
+
182
+ <div id="method-M000011" class="method-detail">
183
+ <a name="M000011"></a>
184
+
185
+ <div class="method-heading">
186
+ <a href="Resource.src/M000011.html" target="Code" class="method-signature"
187
+ onclick="popupCode('Resource.src/M000011.html');return false;">
188
+ <span class="method-name">send_multipart_request</span><span class="method-args">(method,path,file_param_name,file,params={})</span>
189
+ </a>
190
+ </div>
191
+
192
+ <div class="method-description">
193
+ <p>
194
+ allows you to POST/PUT an oauth authenticated multipart request
195
+ </p>
196
+ </div>
197
+ </div>
198
+
199
+ <h3 class="section-bar">Public Instance methods</h3>
200
+
201
+ <div id="method-M000009" class="method-detail">
202
+ <a name="M000009"></a>
203
+
204
+ <div class="method-heading">
205
+ <a href="Resource.src/M000009.html" target="Code" class="method-signature"
206
+ onclick="popupCode('Resource.src/M000009.html');return false;">
207
+ <span class="method-name">load</span><span class="method-args">(*args)</span>
208
+ </a>
209
+ </div>
210
+
211
+ <div class="method-description">
212
+ <p>
213
+ TODO remove when soundcloud api is fixed
214
+ </p>
215
+ <pre>
216
+ if self has no id, try extracting from uri
217
+ </pre>
218
+ </div>
219
+ </div>
220
+
221
+
222
+ </div>
223
+
224
+
225
+ </div>
226
+
227
+
228
+ <div id="validator-badges">
229
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
230
+ </div>
231
+
232
+ </body>
233
+ </html>