Sha256: e59ac74e9cf40a918099eb2c3402292d3571af745ea56eb21b5dcb4ca0cda4db
Contents?: true
Size: 617 Bytes
Versions: 6
Compression:
Stored size: 617 Bytes
Contents
class Twitter::Client @@AUTHENTICATION_URIS = { :verify => '/account/verify_credentials', } # Provides access to the Twitter verify credentials API. # # You can verify Twitter user credentials with minimal overhead using this method. # # Example: # client.authenticate?("osxisforlightweights", "l30p@rd_s^cks!") def authenticate?(login, password) verify_credentials(login, password) end private def verify_credentials(username, passwd) response = rest_oauth_connect(:get, "#{@@AUTHENTICATION_URIS[:verify]}.json") response.is_a?(Net::HTTPSuccess) ? true : false end end
Version data entries
6 entries across 6 versions & 1 rubygems