forked from zelenin/sms_ru
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.php
More file actions
41 lines (24 loc) · 1.27 KB
/
example.php
File metadata and controls
41 lines (24 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
require_once 'src/smsru.php';
$sms = new \Zelenin\smsru('api_id', 'login', 'password');
// $sms = new \Zelenin\smsru( 'api_id' );
// $sms = new \Zelenin\smsru( null, 'login', 'password' );
// $result = $sms->sms_send( '79112223344', 'Текст SMS' );
// $result = $sms->sms_send( '79112223344,79115556677,79118889900', 'Текст SMS' );
// $result = $sms->sms_send( '79112223344', 'Текст SMS', 'Имя отправителя', time(), $translit = false, $test = true, $partner_id );
//$messages = array(
// array( '79112223344', 'Текст СМС' ),
// array( '79115556677', 'Текст СМС' )
//);
// $sms->multi_sms_send( $messages, 'Имя отправителя', time(), $translit = false, $test = true, $partner_id );
// $result = $sms->sms_mail( '79112223344', 'Текст SMS' );
// $result = $sms->sms_mail( '79112223344', 'Текст SMS', 'Имя отправителя' );
// $result = $sms->sms_status( 'SMS id' );
// $result = $sms->sms_cost( '79112223344', 'Текст SMS' );
// $result = $sms->my_balance();
// $result = $sms->my_limit();
// $result = $sms->my_senders();
// $result = $sms->auth_check();
// $result = $sms->stoplist_add( '79112223344', 'ban' );
// $result = $sms->stoplist_get();
// $result = $sms->stoplist_del( '79112223344' );