Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4124 | Rev 4419 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4124 Rev 4131
Línea 11... Línea 11...
11
use Laminas\Cache\Storage\Adapter\AbstractAdapter;
11
use Laminas\Cache\Storage\Adapter\AbstractAdapter;
12
use Laminas\Mvc\Controller\AbstractActionController;
12
use Laminas\Mvc\Controller\AbstractActionController;
13
use Laminas\Log\LoggerInterface;
13
use Laminas\Log\LoggerInterface;
14
use Laminas\View\Model\JsonModel;
14
use Laminas\View\Model\JsonModel;
Línea 15... Línea -...
15
 
-
 
16
 
-
 
17
 
-
 
18
 
15
 
19
class ZoomController extends AbstractActionController
16
class ZoomController extends AbstractActionController
20
{
17
{
21
    /**
18
    /**
22
     *
19
     *
Línea 72... Línea 69...
72
        
69
        
73
 
70
 
Línea 74... Línea 71...
74
        return new JsonModel($data);
71
        return new JsonModel($data);
75
    }
72
    }
76
    
-
 
-
 
73
    
-
 
74
    public function addAction()
Línea 77... Línea 75...
77
    public function createAction()
75
    {
Línea 78... Línea 76...
78
    {
76
        $currentUserPlugin = $this->plugin('currentUserPlugin');
79
 
77
        $currentUser = $currentUserPlugin->getUser();
80
        
-
 
81
        $request = $this->getRequest();
78
        
82
        
79
        $request = $this->getRequest();
Línea 83... Línea 80...
83
        if($request->isPost()) {
80
        
Línea 96... Línea 93...
96
                'headers' => [
93
                'headers' => [
97
                    'Authorization' => 'Bearer ' . $token
94
                    'Authorization' => 'Bearer ' . $token
98
                ],
95
                ],
99
                'json' => [
96
                'json' => [
100
                    'topic' => 'Let s Learn WordPress',
97
                    'topic' => 'Let s Learn WordPress',
-
 
98
                    'agenda' => 'Description Let s Learn WordPress',
101
                    'type' => 2,
99
                    'type' => 2,
102
                    'start_time' => '2023-01-30T20:30:00',
100
                    'start_time' => '2023-01-30T20:30:00',
103
                    'duration' => '30', // 30 mins
101
                    'duration' => '30', // 30 mins
104
                    'password' => '123456',
102
                    'password' => '123456',
105
                    'timezone' => 'America/Caracas',
103
                    'timezone' => 'America/Caracas',
-
 
104
                    'settings' => [
-
 
105
                        'participant_video'=> 'true',
-
 
106
                        'auto_recording' => 'none',
-
 
107
                    ]
106
                ],
108
                ],
107
            ]);
109
            ]);
Línea 108... Línea -...
108
 
-
 
Línea -... Línea 110...
-
 
110
 
-
 
111
 
-
 
112
 
-
 
113
            
-
 
114
            $data = json_decode($response->getBody()->getContents());
-
 
115
            echo '<pre>';
-
 
116
            print_r($data); 
-
 
117
            echo '</pre>';
Línea 109... Línea -...
109
print_r($response->getBody()->getContents()); exit;
-
 
110
 
118
            exit;
111
            
119
            
112
            $data = json_decode($response->getBody());
120
            
Línea 113... Línea 121...
113
            echo "Join URL: ". $data->join_url;
121
            //echo "Join URL: ". $data->join_url;
114
            echo "<br>";
122
            //echo "<br>";
115
            echo "Meeting Password: ". $data->password;
123
            //echo "Meeting Password: ". $data->password;
116
       
124
       
117
          /*  
125
         
118
        } else {
126
       /* } else {