Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updating list of auth methods.

  • Loading branch information...
commit 1783dba06a9067e0f66970df00f3c6c87d85c7aa 1 parent 7e608cf
Monsur Hossain authored July 12, 2011
3  Readme.md
Source Rendered
@@ -50,6 +50,9 @@ r.beginAuthentication(function(error, loginUrl) {
50 50
   }
51 51
 );
52 52
 ```
  53
+
  54
+See the examples/ directory for more examples.
  55
+
53 56
 ## Storing OAuth-related information
54 57
 
55 58
 The library includes a MemoryStore object that stores OAuth request and access tokens in memory.  You can pass in your own datastore object if you wish to store this data elsewhere.  Just follow the same interface as MemoryStore, and pass it to the Rdio constructor as the 'dataStore' parameter.  Note that the datastore currently does not support async operations (i.e. it doesn't take callbacks), so all loading/saving of data should be done outside the Rdio object.
20  examples/rdio-command-line/rdio-command-line.js
... ...
@@ -1,8 +1,26 @@
1 1
 var RdioClient = require('../../lib/rdio-node').Rdio;
2 2
 var FileStore = require('../../lib/datastore/insecure-file-store').InsecureFileStore;
3 3
 
  4
+// A list of methods that requires authentication.
  5
+// This list should be kept in sync with
  6
+// http://developer.rdio.com/docs/read/rest/Methods
4 7
 var AUTH_METHODS = [
5  
-  'getPlaylists'
  8
+  'addToCollection'
  9
+, 'addFriend'
  10
+, 'addToPlaylist'
  11
+, 'createPlaylist'
  12
+, 'currentUser'
  13
+, 'deletePlaylist'
  14
+, 'getObjectFromShortCode'
  15
+, 'getObjectFromUrl'
  16
+, 'getPlaylists'
  17
+, 'removeFriend'
  18
+, 'removeFromCollection'
  19
+, 'removeFromPlaylist'
  20
+, 'setPlaylistCollaborating'
  21
+, 'setPlaylistCollaborationMode'
  22
+, 'setPlaylistFields'
  23
+, 'setPlaylistOrder'
6 24
 ];
7 25
 
8 26
 function getArgs(argv) {

0 notes on commit 1783dba

Please sign in to comment.
Something went wrong with that request. Please try again.