myspace-ruby 0.7.0 → 0.7.1
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.
- data/README +3 -3
- data/doc/classes/MySpace/Connection.html +328 -46
- data/doc/classes/MySpace/Object.html +264 -38
- data/doc/classes/MySpace/User.html +55 -0
- data/doc/classes/MySpace.html +73 -19
- data/doc/classes/MySpaceAPITest.html +172 -220
- data/doc/created.rid +1 -1
- data/doc/files/lib/myspace_rb.html +19 -14
- data/doc/files/tests/test_rb.html +1 -1
- data/doc/fr_class_index.html +3 -0
- data/doc/fr_file_index.html +9 -0
- data/doc/fr_method_index.html +58 -28
- data/lib/myspace/classes/user.rb +1 -0
- data/lib/myspace/connection.rb +2 -2
- data/lib/myspace/loader.rb +1 -1
- data/lib/myspace/object.rb +0 -1
- data/lib/myspace.rb +1 -1
- data/tests/test.rb +3 -7
- metadata +2 -3
- data/lib/myspace/classes/group.rb +0 -55
data/doc/classes/MySpace.html
CHANGED
|
@@ -55,9 +55,29 @@
|
|
|
55
55
|
<tr class="top-aligned-row">
|
|
56
56
|
<td><strong>In:</strong></td>
|
|
57
57
|
<td>
|
|
58
|
+
<a href="../files/lib/myspace/object_rb.html">
|
|
59
|
+
lib/myspace/object.rb
|
|
60
|
+
</a>
|
|
61
|
+
<br />
|
|
62
|
+
<a href="../files/lib/myspace/connection_rb.html">
|
|
63
|
+
lib/myspace/connection.rb
|
|
64
|
+
</a>
|
|
65
|
+
<br />
|
|
58
66
|
<a href="../files/lib/myspace_rb.html">
|
|
59
67
|
lib/myspace.rb
|
|
60
68
|
</a>
|
|
69
|
+
<br />
|
|
70
|
+
<a href="../files/pkg/myspace-ruby-0_7_0/lib/myspace/object_rb.html">
|
|
71
|
+
pkg/myspace-ruby-0.7.0/lib/myspace/object.rb
|
|
72
|
+
</a>
|
|
73
|
+
<br />
|
|
74
|
+
<a href="../files/pkg/myspace-ruby-0_7_0/lib/myspace/connection_rb.html">
|
|
75
|
+
pkg/myspace-ruby-0.7.0/lib/myspace/connection.rb
|
|
76
|
+
</a>
|
|
77
|
+
<br />
|
|
78
|
+
<a href="../files/pkg/myspace-ruby-0_7_0/lib/myspace_rb.html">
|
|
79
|
+
pkg/myspace-ruby-0.7.0/lib/myspace.rb
|
|
80
|
+
</a>
|
|
61
81
|
<br />
|
|
62
82
|
</td>
|
|
63
83
|
</tr>
|
|
@@ -92,7 +112,7 @@ To get a developer account, you need to sign up at:
|
|
|
92
112
|
</p>
|
|
93
113
|
<p>
|
|
94
114
|
Once approved, you will need to create an application to get your api key
|
|
95
|
-
and secret key. The api key is a http URL (e.g <a
|
|
115
|
+
and secret key. The api key is a http URL (e.g. <a
|
|
96
116
|
href="http://www.myspace.com/2543521521">www.myspace.com/2543521521</a>)
|
|
97
117
|
and the secret key will be a 32 character hex string.
|
|
98
118
|
</p>
|
|
@@ -104,9 +124,10 @@ Domain’.
|
|
|
104
124
|
</p>
|
|
105
125
|
<p>
|
|
106
126
|
The keys can be placed into myspace.conf or specified at runtime when you
|
|
107
|
-
new a MySpace::Connection
|
|
108
|
-
|
|
109
|
-
the MYSPACE_CONF environment
|
|
127
|
+
new a <a href="MySpace/Connection.html">MySpace::Connection</a>. The
|
|
128
|
+
myspace.conf file can be in the current directory where the script is being
|
|
129
|
+
run from, or can be specified by setting the MYSPACE_CONF environment
|
|
130
|
+
variable.
|
|
110
131
|
</p>
|
|
111
132
|
<p>
|
|
112
133
|
You only have access to users that have installed your application. Also,
|
|
@@ -122,7 +143,7 @@ This library has some external dependencies:
|
|
|
122
143
|
json/pure ( http://json.rubyforge.org )
|
|
123
144
|
</pre>
|
|
124
145
|
<p>
|
|
125
|
-
You can install json via
|
|
146
|
+
You can install json via rubygem, which should provide a native C
|
|
126
147
|
‘ext’ and pure ruby ‘pure’ extension. The native
|
|
127
148
|
‘json/ext’ module is faster, but could lead to some
|
|
128
149
|
compatibility issues, so we stuck with the pure variant.
|
|
@@ -273,13 +294,13 @@ installed from the URL above.
|
|
|
273
294
|
<li>title (String)
|
|
274
295
|
|
|
275
296
|
</li>
|
|
276
|
-
<li>user (MySpace::User)
|
|
297
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
277
298
|
|
|
278
299
|
</li>
|
|
279
300
|
</ul>
|
|
280
301
|
<h1>Detail</h1>
|
|
281
302
|
<ul>
|
|
282
|
-
<li>user (MySpace::User)
|
|
303
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
283
304
|
|
|
284
305
|
</li>
|
|
285
306
|
<li>status (String)
|
|
@@ -333,7 +354,7 @@ installed from the URL above.
|
|
|
333
354
|
</ul>
|
|
334
355
|
<h1>Friendship</h1>
|
|
335
356
|
<ul>
|
|
336
|
-
<li>user (MySpace::User)
|
|
357
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
337
358
|
|
|
338
359
|
</li>
|
|
339
360
|
<li>friendship (Array MySpace::FriendStatus)
|
|
@@ -342,13 +363,13 @@ installed from the URL above.
|
|
|
342
363
|
</ul>
|
|
343
364
|
<h1>Friends</h1>
|
|
344
365
|
<ul>
|
|
345
|
-
<li>user (MySpace::User)
|
|
366
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
346
367
|
|
|
347
368
|
</li>
|
|
348
|
-
<li>topFriends (Array MySpace::User)
|
|
369
|
+
<li>topFriends (Array <a href="MySpace/User.html">MySpace::User</a>)
|
|
349
370
|
|
|
350
371
|
</li>
|
|
351
|
-
<li>friends (Array MySpace::User)
|
|
372
|
+
<li>friends (Array <a href="MySpace/User.html">MySpace::User</a>)
|
|
352
373
|
|
|
353
374
|
</li>
|
|
354
375
|
<li>next (String)
|
|
@@ -363,7 +384,7 @@ installed from the URL above.
|
|
|
363
384
|
</ul>
|
|
364
385
|
<h1>Interest</h1>
|
|
365
386
|
<ul>
|
|
366
|
-
<li>user (MySpace::User)
|
|
387
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
367
388
|
|
|
368
389
|
</li>
|
|
369
390
|
<li>heroes (String)
|
|
@@ -387,7 +408,7 @@ installed from the URL above.
|
|
|
387
408
|
</ul>
|
|
388
409
|
<h1>Mood</h1>
|
|
389
410
|
<ul>
|
|
390
|
-
<li>user (MySpace::User)
|
|
411
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
391
412
|
|
|
392
413
|
</li>
|
|
393
414
|
<li>mood (String)
|
|
@@ -396,7 +417,7 @@ installed from the URL above.
|
|
|
396
417
|
</ul>
|
|
397
418
|
<h1>Photos</h1>
|
|
398
419
|
<ul>
|
|
399
|
-
<li>user (MySpace::User)
|
|
420
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
400
421
|
|
|
401
422
|
</li>
|
|
402
423
|
<li>photos (Array MySpace::Photo)
|
|
@@ -420,7 +441,7 @@ installed from the URL above.
|
|
|
420
441
|
<li>photoUri (String)
|
|
421
442
|
|
|
422
443
|
</li>
|
|
423
|
-
<li>user (MySpace::User)
|
|
444
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
424
445
|
|
|
425
446
|
</li>
|
|
426
447
|
</ul>
|
|
@@ -462,14 +483,14 @@ installed from the URL above.
|
|
|
462
483
|
</ul>
|
|
463
484
|
<h1>Status</h1>
|
|
464
485
|
<ul>
|
|
465
|
-
<li>user (MySpace::User)
|
|
486
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
466
487
|
|
|
467
488
|
</li>
|
|
468
489
|
<li>status (String)
|
|
469
490
|
|
|
470
491
|
</li>
|
|
471
492
|
</ul>
|
|
472
|
-
<h1>User</h1>
|
|
493
|
+
<h1><a href="MySpace/User.html">User</a></h1>
|
|
473
494
|
<ul>
|
|
474
495
|
<li>name (String)
|
|
475
496
|
|
|
@@ -570,7 +591,7 @@ installed from the URL above.
|
|
|
570
591
|
<li>uri (String)
|
|
571
592
|
|
|
572
593
|
</li>
|
|
573
|
-
<li>user (MySpace::User)
|
|
594
|
+
<li>user (<a href="MySpace/User.html">MySpace::User</a>)
|
|
574
595
|
|
|
575
596
|
</li>
|
|
576
597
|
<li>userId (Fixnum)
|
|
@@ -612,6 +633,14 @@ Chris Bell, copyright (c) 2008, <a href="MySpace.html">MySpace</a>
|
|
|
612
633
|
|
|
613
634
|
<div id="section">
|
|
614
635
|
|
|
636
|
+
<div id="class-list">
|
|
637
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
|
638
|
+
|
|
639
|
+
Class <a href="MySpace/Connection.html" class="link">MySpace::Connection</a><br />
|
|
640
|
+
Class <a href="MySpace/Object.html" class="link">MySpace::Object</a><br />
|
|
641
|
+
Class <a href="MySpace/User.html" class="link">MySpace::User</a><br />
|
|
642
|
+
|
|
643
|
+
</div>
|
|
615
644
|
|
|
616
645
|
<div id="constants-list">
|
|
617
646
|
<h3 class="section-bar">Constants</h3>
|
|
@@ -631,7 +660,32 @@ Chris Bell, copyright (c) 2008, <a href="MySpace.html">MySpace</a>
|
|
|
631
660
|
<tr class="top-aligned-row context-row">
|
|
632
661
|
<td class="context-item-name">API_HOST</td>
|
|
633
662
|
<td>=</td>
|
|
634
|
-
<td class="context-item-value">"api.
|
|
663
|
+
<td class="context-item-value">"api.myspace.com"</td>
|
|
664
|
+
</tr>
|
|
665
|
+
<tr class="top-aligned-row context-row">
|
|
666
|
+
<td class="context-item-name">API_VERSION</td>
|
|
667
|
+
<td>=</td>
|
|
668
|
+
<td class="context-item-value">"v1"</td>
|
|
669
|
+
</tr>
|
|
670
|
+
<tr class="top-aligned-row context-row">
|
|
671
|
+
<td class="context-item-name">API_CONF</td>
|
|
672
|
+
<td>=</td>
|
|
673
|
+
<td class="context-item-value">if File.exist?("myspace.conf")</td>
|
|
674
|
+
</tr>
|
|
675
|
+
<tr class="top-aligned-row context-row">
|
|
676
|
+
<td class="context-item-name">VERSION</td>
|
|
677
|
+
<td>=</td>
|
|
678
|
+
<td class="context-item-value">"0.7"</td>
|
|
679
|
+
</tr>
|
|
680
|
+
<tr class="top-aligned-row context-row">
|
|
681
|
+
<td class="context-item-name">API_FORMATS</td>
|
|
682
|
+
<td>=</td>
|
|
683
|
+
<td class="context-item-value">["json","xml"]</td>
|
|
684
|
+
</tr>
|
|
685
|
+
<tr class="top-aligned-row context-row">
|
|
686
|
+
<td class="context-item-name">API_HOST</td>
|
|
687
|
+
<td>=</td>
|
|
688
|
+
<td class="context-item-value">"api.myspace.com"</td>
|
|
635
689
|
</tr>
|
|
636
690
|
<tr class="top-aligned-row context-row">
|
|
637
691
|
<td class="context-item-name">API_VERSION</td>
|