Ruby on Rails アプリケーションで、「757: 'Could not verify your access level for that URL. You have to login with appropriate credentials.」というエラーが表示され続けます。
コードは次のとおりです。
def send_message_plivo
p = RestAPI.new(ENV["PLIVO_AUTHID"], ENV["PLIVO_AUTHTOKEN"])
params = {
"src" => "1111111111",
"dest" => "xxxxxxxxxxxxx", # <- my only verified number
"text" => "Hi! From Plivo",
"url" => "http://localhost:3000/sent_message_status",
"method" => "POST"
}
response = p.send_message(params) # <- line of the error!
puts response
end
何が欠けているか知っていますか?