Sha256: 116b5ee43560e9d4323b1ea4a0d8b5f682152abb8bdbdc692505ee01d45806a9

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

class CityGrid
  class API
    class Accounts
      class User < Accounts
        include CityGrid::API::Mutable
        include CityGrid::API::Searchable
        
        # def self.login options = {}
        #   request_and_handle :post,
        #     "#{endpoint}/login",
        #     :query => options,
        #     :headers => merge_headers()
        # end
        
        # login behaves weird right now - expects string as body, not json encoded. 
        # define_action :login, :post, "login", :auth_token => false, :format => false        
        
        define_action :validate, :get, "validate", :auth_token => true, :format => false
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citygrid_api-0.0.27 lib/citygrid/api/accounts/user.rb