Sha256: bdf4470ee74ba35e5736ddc49aac7215526074ddac284cf1c5cf82d942159e72

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

class Smartfm::RestClient::User < Smartfm::RestClient::Base

  ACTIONS = {
    :current              => {:path => '/users'                           },
    :find                 => {:path => '/users/__username__'              },
    :lists                => {:path => '/users/__username__/lists'        },
    :items                => {:path => '/users/__username__/items'        },
    :friends              => {:path => '/users/__username__/friends'      },
    :followers            => {:path => '/users/__username__/followers'    },
    :friends_of_current   => {:path => '/friends'                         },
    :followers_of_current => {:path => '/followers'                       },
    :likes                => {:path => '/users/__username__/likes'        },
    :notifications        => {:path => '/users/__username__/notifications'},
    :matching             => {:path => '/users/matching/__keyword__'      },
    :study_results        => {:path => '/users/__username__/study_results/__application__'},
    :follow!              => {:path => '/friends',              :http_method => :post},
    :unfollow!            => {:path => '/friends/__username__', :http_method => :delete}
  }

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
nov-smartfm-1.0.2 lib/smartfm/rest_clients/user.rb
smartfm-1.0.2 lib/smartfm/rest_clients/user.rb