An API client for Cyta Web SMS in PHP
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
A simple api client for PHP applications where you can easily call a function to send sms through the Cyta Web SMS Platform and receive it's status code
Login to MyCyta and visit https://www.cyta.com.cy/web-sms-api/. Enable the api and copy username and secret key. Then open configuration.php
in client and enter details
$websmsapi_config = array(
"version" => "1.0",
"username" => "ENTER_USERNAME_HERE", //Enter Cyta Web Sms Sender Username
"apiKey" => "xxxxxxxxxxxxxxxxx", // Enter Cyta Web Sms Sender Api Key
"language" => "el"
);
Include the client
require 'CLIENT_LOCATION/cytawebsmsapi-client/client/client.php';
Call the cytawebsms_create_request
function and define recipients(array) & message(string)
cytawebsms_create_request($recipients, $message);
The client will return an array in this format e.g. success example
array(
"api_success" => true,
"status_message" => "Send Sms success",
"status_code" => "0",
"lot" => "XXXXXXXXXX"
);
For more examples, please refer to the Documentation
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.md
for more information.
Dimitris T - [email protected]
Project Link: https://github.com/dimitrist19/cytawebsmsapi-client