This provides request middleware for Faraday to authenticate SDP URLs.
gem install 'faraday_sdp_auth'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'The gem is available as open source under the terms of the MIT License.