= https://api.sms.to/sms/send?api_key=0OCOyBAmcUfsdffefvfvsdrhxPSZObnrS&to={num}&message={msg}&sender_id=SMS
                  
                  
                      $msg    = urlencode($msg);
                  
                  
                      
                  
                  
                      if($fullApi)
                  
                  
                      {
                  
                  
                        $api     = str_replace(['{msg}','{num}'],[$msg,$num],$fullApi);
                  
                  
                      
                  
                  
                        $url = $api;
                  
                  
                        $ch = curl_init($url);
                  
                  
                        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
                  
                  
                        curl_setopt($ch, CURLOPT_URL,$url);
                  
                  
                        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                  
                  
                        $output = curl_exec ($ch);
                  
                  
                        $info = curl_getinfo($ch);
                  
                  
                        $http_result = $info ['http_code'];
                  
                  
                        curl_close ($ch);
                  
                  
                      }
                  
                  
                    }
                  
                  
                
Хоть бы ключ свой убрал
Обсуждают сегодня