Httparty
ответ приходит как
#<Net::HTTPForbidden 403 Forbidden readbody=true>
request = HTTParty.post('http://fcm.googleapis.com/fcm/send',
:body => { "to" => "xxx:xxxx", "priority" => "high", "data" => { "title" =>"test","body"=>"cccc",'massage_type'=>'text'}}.to_json, :headers => { 'Content-Type' => 'application/json', 'Authorization' => "key=cccccc","User-Agent"=>"" } )