youngj / EnvayaSMS

Simple SMS and MMS gateway running on Android
http://sms.envaya.org
Other
161 stars 177 forks source link

cloudamqp and EnvayaSMS #41

Open ikamran opened 4 years ago

ikamran commented 4 years ago

Hi there,

I am looking to a solution to be able to get SMS messages using API, once i got SMS to my android phone i could be easily get it in my php app or phyton app,

i though how we can send SMSs received to phone using EnvayaSMS and cloudamqp.com which have free plan to test, anybody can help me find a solution?

amelyec commented 4 years ago

Set a host without http or https at the beginning, set your username and password . AMQP Virtual Host value is your username. AMQP Queue Name envaya. To send a message publish a message from cloudamqp UI or from your application to the envaya queue in below format

{"event":"send","messages":[{"id":"4f7c9cea5e11bs","to":"255765154235","message":"hello world'"}]}

Headers Content-Type:application/json