how to convert code php(crul) to vb.net

  • Thread starter Thread starter saifeddine_ghouma
  • Start date Start date
S

saifeddine_ghouma

Guest
// Generated by curl-to-PHP: curl-to-PHP: Convert Curl commands to PHP code $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.orange.com/smsmessaging/v1/outbound/tel:+{{dev_phone_number}}/requests'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"outboundSMSMessageRequest\":{ \n \"address\": \"tel:+{{recipient_phone_number}}\", \n \"senderAddress\":\"tel:+{{dev_phone_number}}\", \n \"outboundSMSTextMessage\":{ \n \"message\": \"Hello!\" \n } \n } \n}"); curl_setopt($ch, CURLOPT_POST, 1); $headers = array(); $headers[] = 'Authorization: Bearer {{access_token}}'; $headers[] = 'Content-Type: application/json'; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close ($ch);

Continue reading...
 
Back
Top