5
0
mirror of https://github.com/cwinfo/envayasms.git synced 2024-12-04 20:45:32 +00:00
envayasms/server/php
2012-03-15 17:20:23 -07:00
..
example add support for incoming call notifications; fix intermittent NullPointerException when receiving MMS; fix MMS parts with missing filename; allow server to send error messages to be shown in app log (requires updating server library and using EnvayaSMS::get_error_xml()); send device manufacturer/model/sdk version in HTTP User-Agent header; add device_status notification for send_limit_exceeded; add send_status constant for cancelled messages; 30 sec timeouts for outgoing messages; send network type (MOBILE or WIFI) to server; send age (i.e. delay) of incoming message to server; fix crashing bug with checking connectivity; save MMS parts in example server 2012-03-15 17:20:23 -07:00
EnvayaSMS.php add support for incoming call notifications; fix intermittent NullPointerException when receiving MMS; fix MMS parts with missing filename; allow server to send error messages to be shown in app log (requires updating server library and using EnvayaSMS::get_error_xml()); send device manufacturer/model/sdk version in HTTP User-Agent header; add device_status notification for send_limit_exceeded; add send_status constant for cancelled messages; 30 sec timeouts for outgoing messages; send network type (MOBILE or WIFI) to server; send age (i.e. delay) of incoming message to server; fix crashing bug with checking connectivity; save MMS parts in example server 2012-03-15 17:20:23 -07:00
README.txt update license and readme files for request simulator 2011-10-09 16:37:54 -07:00

PHP server library for EnvayaSMS, with example implementation

The EnvayaSMS.php library is intended to be used as part of a PHP application 
running on an HTTP server that receives incoming SMS messages from, and sends 
outgoing SMS messages to, an Android phone running EnvayaSMS.

To run the example implementation, the example/www/ directory should be made available 
via a web server running PHP (e.g. Apache). You can also use the included standalone 
PHP web server, by running the following commands:
    git submodule init
    php server.php
    
example/config.php contains the list of phone numbers and passwords for phones running EnvayaSMS.

On a phone running EnvayaSMS, go to Menu -> Settings and enter:
    * Server URL: The URL to example/www/index.php. 
        If you're using server.php, this will be http://<your_ip_address>:8002/
    * Your phone number: One of the phone numbers listed in example/config.php
    * Password: The corresponding password in example/config.php

To send an outgoing SMS, use 
    php example/send_sms.php
    
example/www/test.html allows you to simulate the HTTP requests made by EnvayaSMS 
in your browser without actually using the EnvayaSMS app.
If you're using server.php, just go to http://<your_ip_address>:8002/test.html

See EnvayaSMS.php and example/www/index.php