none
how to convert code php(crul) to vb.net RRS feed

  • Question

  • // Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.orange.com/smsmessaging/v1/outbound/tel%3A%2B{{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);
    Tuesday, April 23, 2019 8:42 AM

All replies