Sha256: fbdeb35484a3b6731f60166f608c52bd326f6152130595537babdfdf49bc72ff
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
module Brickset module Api module Auth def login(username, password) xml = call('/login', username: username, password: password) HappyMapper.parse(xml).content end def valid_api_key? xml = call('/checkKey') HappyMapper.parse(xml).content == 'OK' end def valid_token? xml = call('/checkUserHash') HappyMapper.parse(xml).content != 'INVALID' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brickset_api-0.1.0 | lib/brickset/api/auth.rb |