GlisWeb framework
_slack.php
Vai alla documentazione di questo file.
1 <?php
2 
14  // inclusione del framework
15  require '../../../_src/_config.php';
16 
17  // header
18  header( 'Content-type: text/plain' );
19 
20  // prove
21  $a = array( 'text' => 'ciao! sono il vostro gestionale e vi sto parlando' );
22 
23  $a = array(
24  'blocks' => array(
25  array(
26  'type' => 'section',
27  'text' => array(
28  'type' => 'mrkdwn',
29  'text' => 'ciao! sono il vostro gestionale e *vi sto parlando* capite?'
30  )
31  )
32  )
33  );
34 
35  $a = array(
36  'blocks' => array(
37  array(
38  'type' => 'section',
39  'text' => array(
40  'type' => 'mrkdwn',
41  'text' => 'ciao! sono il vostro gestionale e *vi sto parlando* capite?'
42  )
43  ),
44  array(
45  'type' => 'divider'
46  ),
47  array(
48  'type' => 'section',
49  'text' => array(
50  'type' => 'mrkdwn',
51  'text' => "- prova A\n- prova B"
52  )
53  )
54  )
55  );
56 
57  $a = array(
58  'text' => 'aggiornamenti da Glisweb',
59  'blocks' => array(
60  array(
61  'type' => 'section',
62  'text' => array(
63  'type' => 'mrkdwn',
64  'text' => 'ciao! sono il vostro gestionale e *vi sto parlando* capite?'
65  )
66  ),
67  array(
68  'type' => 'section',
69  'text' => array(
70  'type' => 'mrkdwn',
71  'text' => ":black_small_square: oggetto di prova"
72  )
73  ),
74  array(
75  'type' => 'section',
76  'text' => array(
77  'type' => 'mrkdwn',
78  'text' => ":black_small_square: altro oggetto di prova"
79  )
80  )
81  )
82  );
83 
84  $a = array(
85  'text' => 'aggiornamenti da Glisweb',
86  'blocks' => array(
87  array(
88  'type' => 'section',
89  'text' => array(
90  'type' => 'mrkdwn',
91  'text' => 'ciao! sono il vostro gestionale e vi ricordo che:'
92  )
93  ),
94  array(
95  'type' => 'section',
96  'text' => array(
97  'type' => 'mrkdwn',
98  'text' => "- oggetto di prova\n- altro oggetto di prova"
99  )
100  )
101  )
102  );
103 
104  $a = array(
105  'text' => 'aggiornamenti da Glisweb',
106  'blocks' => array(
107  array(
108  'type' => 'section',
109  'text' => array(
110  'type' => 'mrkdwn',
111  'text' => 'ciao! sono il vostro gestionale e vi ricordo che @fabio.mosti รจ rincoglionito'
112  )
113  )
114  )
115  );
116 
117  // debug
118  // die( json_encode( $a ) );
119 
120  // accodo l'SMS di prova
122  $cf['slack']['profile']['webhooks']['produzione-web'],
123  $a
124  );
125 
126  // output
127  print_r( $e );
128 
129 ?>
$cf['ricerca']['template']
Definition: _030.common.php:7
$a
Definition: _slack.php:21
$e
Definition: _slack.php:121
slackMsg( $c, $t)