Method: Clickatell::API#authenticate
- Defined in:
- lib/clickatell/api.rb
#authenticate(api_id, username, password) ⇒ Object
Authenticates using the specified credentials. Returns a session_id if successful which can be used in subsequent API calls.
41 42 43 44 45 46 47 48 |
# File 'lib/clickatell/api.rb', line 41 def authenticate(api_id, username, password) response = execute_command('auth', 'http', :api_id => api_id, :user => username, :password => password ) parse_response(response)['OK'] end |