Sha256: 8270cb8f95fca14b486552091319a52602870b32570de1963de42d4eff3a7ac0

Contents?: true

Size: 544 Bytes

Versions: 11

Compression:

Stored size: 544 Bytes

Contents

module Sentimeta::Client::Auth
  extend self
  extend Sentimeta::RestClient

  self.namespace = 'crowd/auth'

  def user token
    get 'users/token', id: token
  end

  def signup attrs
    post :signup, attrs
  end

  def signin attrs
    post :signin, attrs
  end

  def reset_password_token login
    put 'users/create_reset_token', login: login
  end

  def reset_password params
    put 'users/reset_password', params
  end

  def oauth attrs
    post :oauth, attrs
  end

  def signout token
    delete 'users/token', id: token
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sentimeta-0.1.22 lib/sentimeta/client/auth.rb
sentimeta-0.1.21 lib/sentimeta/client/auth.rb
sentimeta-0.1.20 lib/sentimeta/client/auth.rb
sentimeta-0.1.10 lib/sentimeta/client/auth.rb
sentimeta-0.1.9 lib/sentimeta/client/auth.rb
sentimeta-0.1.8 lib/sentimeta/client/auth.rb
sentimeta-0.1.7 lib/sentimeta/client/auth.rb
sentimeta-0.1.6 lib/sentimeta/client/auth.rb
sentimeta-0.1.5 lib/sentimeta/client/auth.rb
sentimeta-0.1.4 lib/sentimeta/client/auth.rb
sentimeta-0.1.3 lib/sentimeta/client/auth.rb