Changeset 3037249
- Timestamp:
- 02/17/2024 07:45:18 PM (2 years ago)
- Location:
- sms-gateway-press
- Files:
-
- 9 added
- 2 deleted
- 4 edited
- 11 copied
-
tags/1.0.2 (added)
-
tags/1.0.2/index.php (added)
-
tags/1.0.2/js (copied) (copied from sms-gateway-press/trunk/js)
-
tags/1.0.2/js/index.php (added)
-
tags/1.0.2/plugin.php (copied) (copied from sms-gateway-press/trunk/plugin.php) (1 diff)
-
tags/1.0.2/private (copied) (copied from sms-gateway-press/trunk/private)
-
tags/1.0.2/private/.htaccess (deleted)
-
tags/1.0.2/private/custom-post-type/class-sms.php (modified) (1 diff)
-
tags/1.0.2/private/custom-post-type/index.php (added)
-
tags/1.0.2/private/index.php (added)
-
tags/1.0.2/readme.txt (copied) (copied from sms-gateway-press/trunk/readme.txt) (4 diffs)
-
tags/1.0.2/screenshot-1.png (copied) (copied from sms-gateway-press/trunk/screenshot-1.png)
-
tags/1.0.2/screenshot-2.png (copied) (copied from sms-gateway-press/trunk/screenshot-2.png)
-
tags/1.0.2/screenshot-3.png (copied) (copied from sms-gateway-press/trunk/screenshot-3.png)
-
tags/1.0.2/screenshot-4.png (copied) (copied from sms-gateway-press/trunk/screenshot-4.png)
-
tags/1.0.2/screenshot-5.png (copied) (copied from sms-gateway-press/trunk/screenshot-5.png)
-
tags/1.0.2/screenshot-6.png (copied) (copied from sms-gateway-press/trunk/screenshot-6.png)
-
tags/1.0.2/screenshot-7.png (copied) (copied from sms-gateway-press/trunk/screenshot-7.png)
-
trunk/index.php (added)
-
trunk/js/index.php (added)
-
trunk/plugin.php (modified) (1 diff)
-
trunk/private/.htaccess (deleted)
-
trunk/private/custom-post-type/class-sms.php (modified) (1 diff)
-
trunk/private/custom-post-type/index.php (added)
-
trunk/private/index.php (added)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sms-gateway-press/tags/1.0.2/plugin.php
r3037119 r3037249 4 4 * Plugin URI: https://www.sms-gateway-press.com 5 5 * Description: Self-hosted SMS Gateway. Send SMS with your own Android devices across your WordPress site. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Requires PHP: 7.3 8 8 * Author: Andy Daniel Navarro Taño -
sms-gateway-press/tags/1.0.2/private/custom-post-type/class-sms.php
r3036929 r3037249 405 405 } elseif ( is_array( $log ) && isset( $log['time'] ) && isset( $log['text'] ) ) { 406 406 $time = ( new DateTime() )->setTimestamp( $log['time'] ); 407 echo esc_attr( '<p><strong>' . $time->format( 'Y-m-d H:i:s' ) . ':</strong>' . $log['text'] . '</p>' );407 echo '<p><strong>' . esc_html( $time->format( 'Y-m-d H:i:s' ) ) . ':</strong>' . esc_html( $log['text'] ) . '</p>'; 408 408 } 409 409 } -
sms-gateway-press/tags/1.0.2/readme.txt
r3036929 r3037249 5 5 Requires at least: 6.0 6 6 Tested up to: 6.4 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 Requires PHP: 7.3 9 9 License: GPLv2 or later … … 26 26 == Get Started == 27 27 28 1. Install this plugin.28 Visit the Official Website to get started. 29 29 30 2. Create one device from "Devices" > "Add New" in the WordPress admin. Define only a title and publish the post. Once the post is published, a QR code will appear that you must scan from the app to connect the device. 31 32 3. Install the Android app client. 33 34 4. Open the installed app and press the "Edit Credentials" button. Then press "Scan QR" and focus on the QR of the device. Once the scan has been completed satisfactorily, you can press the "Test Connection" button to test the connection. If successful, it will indicate below the device's QR that it has already been connected. Then press "Save". Then press "Connect" in the app and some information about the recent connection activity will be displayed below. 30 [www.sms-gateway-press.com](https://www.sms-gateway-press.com) 35 31 36 32 == Frequently Asked Questions == … … 38 34 = Where to get the Android app? = 39 35 40 The Android app may be downloaded from: https://www.sms-gateway-press.com/download36 The Android app may be downloaded [from here](https://www.sms-gateway-press.com/sdc_download/288/?key=gsajg40lttpcr5ycxbwoojvk3angq1) 41 37 42 = How to send SMS manually? =38 = How to send SMS? = 43 39 44 Simply create a new SMS type entry from the menu and indicate the required parameters such as the destination number, text and time restrictions. Once said entry is published, the SMS will be delivered to the first connected device that is free for sending. Once the submission process begins, a debugging box will display the process. 45 46 = How to send SMS via API? = 47 48 To use the API endpoints, it is first necessary to create an application password to authorize the user. 49 50 Once you have done this you will be able to send with API calls similar to the following: 51 52 `curl -X POST --user <username>:"<password>" https://<your-domain>/wp-json/wp-sms-gateway/v1/send -d phone_number=123456789 -d text="Hi World"` 53 54 The response will contain information about the new SMS. 55 56 = How to check the status of an SMS via API? = 57 58 `curl -X GET --user <username>:"<password>" https://<your-domain>/wp-json/wp-sms-gateway/v1/sms/<id>` 40 [Read this guide](https://www.sms-gateway-press.com/como-enviar-un-sms/) 59 41 60 42 == Screenshots == … … 67 49 6. screenshot-6.png Edit credentials. 68 50 7. screenshot-7.png App running. 69 70 == Changelog ==71 72 TODO -
sms-gateway-press/trunk/plugin.php
r3037119 r3037249 4 4 * Plugin URI: https://www.sms-gateway-press.com 5 5 * Description: Self-hosted SMS Gateway. Send SMS with your own Android devices across your WordPress site. 6 * Version: 1.0. 16 * Version: 1.0.2 7 7 * Requires PHP: 7.3 8 8 * Author: Andy Daniel Navarro Taño -
sms-gateway-press/trunk/private/custom-post-type/class-sms.php
r3036929 r3037249 405 405 } elseif ( is_array( $log ) && isset( $log['time'] ) && isset( $log['text'] ) ) { 406 406 $time = ( new DateTime() )->setTimestamp( $log['time'] ); 407 echo esc_attr( '<p><strong>' . $time->format( 'Y-m-d H:i:s' ) . ':</strong>' . $log['text'] . '</p>' );407 echo '<p><strong>' . esc_html( $time->format( 'Y-m-d H:i:s' ) ) . ':</strong>' . esc_html( $log['text'] ) . '</p>'; 408 408 } 409 409 } -
sms-gateway-press/trunk/readme.txt
r3036929 r3037249 5 5 Requires at least: 6.0 6 6 Tested up to: 6.4 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 Requires PHP: 7.3 9 9 License: GPLv2 or later … … 26 26 == Get Started == 27 27 28 1. Install this plugin.28 Visit the Official Website to get started. 29 29 30 2. Create one device from "Devices" > "Add New" in the WordPress admin. Define only a title and publish the post. Once the post is published, a QR code will appear that you must scan from the app to connect the device. 31 32 3. Install the Android app client. 33 34 4. Open the installed app and press the "Edit Credentials" button. Then press "Scan QR" and focus on the QR of the device. Once the scan has been completed satisfactorily, you can press the "Test Connection" button to test the connection. If successful, it will indicate below the device's QR that it has already been connected. Then press "Save". Then press "Connect" in the app and some information about the recent connection activity will be displayed below. 30 [www.sms-gateway-press.com](https://www.sms-gateway-press.com) 35 31 36 32 == Frequently Asked Questions == … … 38 34 = Where to get the Android app? = 39 35 40 The Android app may be downloaded from: https://www.sms-gateway-press.com/download36 The Android app may be downloaded [from here](https://www.sms-gateway-press.com/sdc_download/288/?key=gsajg40lttpcr5ycxbwoojvk3angq1) 41 37 42 = How to send SMS manually? =38 = How to send SMS? = 43 39 44 Simply create a new SMS type entry from the menu and indicate the required parameters such as the destination number, text and time restrictions. Once said entry is published, the SMS will be delivered to the first connected device that is free for sending. Once the submission process begins, a debugging box will display the process. 45 46 = How to send SMS via API? = 47 48 To use the API endpoints, it is first necessary to create an application password to authorize the user. 49 50 Once you have done this you will be able to send with API calls similar to the following: 51 52 `curl -X POST --user <username>:"<password>" https://<your-domain>/wp-json/wp-sms-gateway/v1/send -d phone_number=123456789 -d text="Hi World"` 53 54 The response will contain information about the new SMS. 55 56 = How to check the status of an SMS via API? = 57 58 `curl -X GET --user <username>:"<password>" https://<your-domain>/wp-json/wp-sms-gateway/v1/sms/<id>` 40 [Read this guide](https://www.sms-gateway-press.com/como-enviar-un-sms/) 59 41 60 42 == Screenshots == … … 67 49 6. screenshot-6.png Edit credentials. 68 50 7. screenshot-7.png App running. 69 70 == Changelog ==71 72 TODO
Note: See TracChangeset
for help on using the changeset viewer.