I keep getting this error: "757: unexpected token at 'Could not verify your access level for that URL. You have to login with proper credentials" In my Ruby on Rails application.
Here's the code:
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
Do you know what am I missing?