https://github.com/comsolit/imasys-php
https://github.com/comsolit/imasys-php
looking-for-maintainer unmaintained
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/comsolit/imasys-php
- Owner: comsolit
- Created: 2015-06-26T15:25:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-10-28T10:22:21.000Z (almost 3 years ago)
- Last Synced: 2025-08-27T13:33:43.699Z (about 1 month ago)
- Topics: looking-for-maintainer, unmaintained
- Language: PHP
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **THIS REPO IS UNMAINTAINED / A NEW MAINTAINER IS NEEDED**
# IMASYS PHP
IMASYS PHP is a PHP wrapper for the IMASYS XML API from Swissphone. Current capabilities are sending SMS messages and checking the message status.
## Example: Send a text message and get message status
### 1. Enter credentials
```PHP
$credentials = new Credentials('', '');
```### 2. Fetch portal list
```PHP
$portalServers = PortalServers::fetchPortalServers($config['host'], $credentials);
```### 3. Initialize connection
```PHP
$connection = new Connection($credentials, $portalServers);
```### 4. Send message
```PHP
$sendMessageRequest = new SendMessageRequest('', '', '');
$sendMessageResponse = $connection->send($sendMessageRequest);
```### 5. Get message status
```PHP
sleep(10);
$batchStatusRequest = new BatchStatusRequest($sendMessageResponse->getBatchId());
$batchStatusResponse = $connection->send($batchStatusRequest);foreach ($batchStatusResponse->getBatch()->getMessages() as $message) {
print_r($message->getStatus());
}
```
The reason the sleep function is called is to wait for the message to arrive on the target.## References
* [Swissphone IMASYS XML][Swissphone IMASYS XML]:http://www.swissphone.com/de/solution/imasys-ocxxml/