Skip to content

Selventa/faraday_sdp_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

faraday_sdp_auth

This provides request middleware for Faraday to authenticate SDP URLs.

Installation

gem install 'faraday_sdp_auth'

Usage

Using Faraday set up a connection and configure an :sdp_auth middlware with your api_key and private_key.

sdp_connection = Faraday.new 'https://your-sdp.selventa.com' do |conn|
  conn.request :sdp_auth,
    :api_key     => 'werner.brandes@toycompany.com',
    :private_key => 'my_voice_is_my_passport_verify_me'

  conn.adapter Faraday.default_adapter
end

sdp_conn.get '/api/knowledge-networks'

License

The gem is available as open source under the terms of the MIT License.

About

Authenticate SDP URLs with Faraday (Ruby).

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages