Hello Team,

 

I have a rails web application and have to post a json to the host below. 

 

Presently i am struggling.

 

Can you please help us a with a sample *rails controller method* to push 
this below notification. 

 

POST 
/push?api_key=31fbfefcd4baa21221545c1233cf2631d9e3eca7f6e76b6c486144c115002de0 
HTTP/1.1

Host: https://pushy.me

Content-Type: application/json

Connection: close

Content-Length: 82

 

{"registration_ids":["d62d6163f916d15eed601b"], "data":{"message":"Hello 
World!"}}



-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/32c504b1-59f4-490e-8a67-6ca937de7871%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to