Open z3nnix opened 4 hours ago
require 'uri' require 'net/http' url = URI("https://api.revolt.chat/bots/__BOT__") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["X-Session-Token"] = <my token> response = http.request(request) puts response.read_body
output: <!DOCTYPE html>
The request requires user authentication.
://
token is valid btw
What happened?
output: <!DOCTYPE html>
401: Unauthorized
The request requires user authentication.
://