1
19.1 Legacy Series / CP Endpoints for White List
« on: February 07, 2019, 06:52:54 pm »
Can anyone point me to the endpoints for getting, adding, and deleting MAC address to the CP white list via the API?
Thanks
Thanks
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
require 'net/http'
require 'openssl'
require 'json'
uri = URI('https://10.15.1.227/api/captiveportal/service/searchtemplates')
request = Net::HTTP::Get.new(uri)
request.basic_auth '123', 'abc'
result = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => true) do |http|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.request(request)
end
puts result.body
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed