当前位置:网站首页>PHP - cURL复制粘贴性接入短信验证码示例
PHP - cURL复制粘贴性接入短信验证码示例
2020-11-09 19:22:00 【打工就是人上人】
由于项目的需要,我找了一个可以直接复制粘贴的短信验证码接入示例,现在分享出来,希望可以提高各位同仁的工作效率,代码如下:
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://vip.veesing.com/smsApi/verifyCode",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "appId=41KYR0EB****&appKey=IIWCKKSR7NOQ****&phone=1561894****&templateId=1043&variables=1234",
CURLOPT_HTTPHEADER => array(
"Content-Type: application/x-www-form-urlencoded;charset=utf-8"
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
这是各大云市的短信供应商的短信接口,稳定性方面,大家也可以测试一下,我自己测过,自认为非常稳定,原创不易,希望大家给个三连。
版权声明
本文为[打工就是人上人]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/3937044/blog/4710279
边栏推荐
- 揭秘在召唤师峡谷中移动路径选择逻辑?
- 深入分析商淘多用户商城系统如何从搜索着手打造盈利点
- [最佳实践]了解 Eolinker 如何助力远程办公
- Abbyy finereader 15 adds editing page layout function
- Experts' interpretation of four hot industries in 2020 China telecom terminal technology and Standards Forum
- (3) ASP.NET Core3.1 Ocelot certification
- The database executes truncate table cm_ CHECK_ ITEM_ How does his recover
- openocd+jlink_picture
- 云数据库的本质是什么?探究华为云数据库的核心价值
- How to realize the authority route and authority menu of background management system
猜你喜欢
骚操作!嵌套 JSON 秒变 Dataframe!
[最佳实践]了解 Eolinker 如何助力远程办公
Almost finished all the list titles, I found these things...
Abbyy finereader 15 added edit table cell function
C#控制台调用FFMPEG推MP4视频文件至流媒体开源服务平台EasyDarwin过程
Which industries are suitable for enterprises to develop wechat applet?
Kubernetes权限管理之RBAC (一)
What is the Ethernet module? What are the functions and characteristics of the Ethernet module
Exhibition cloud technology interpretation | in the face of emergencies, how does app do a good job in crash analysis and performance monitoring?
又一道比较运算符相关的面试题让我明白基础很重要
随机推荐
Git + -- Code hosting in the history of version management
(3) ASP.NET Core3.1 Ocelot certification
The basic principle of MRAM
openocd+jlink_picture
非常值得一看的 Curl 用法指南
Android软键盘遮挡的四种解决方案
[stm32h7] Chapter 6: stm32h7 dma2d acceleration of ThreadX guix
小程序调用原生onShareAppMessage分享,imageUrl参数是mp4格式怎么办
2020中国电信终端技术与标准论坛上专家解读四大热门产业
VsCode之Markdown插件
Android instance - simple login layout
Abbyy finereader 15 added edit table cell function
dat.GUI 打造可视化工具(一)
60 余位技术高管齐聚松山湖,华为云第一期核心伙伴开发者训练营圆满落幕
【STM32F429】第6章 ThreadX GUIX上手之STM32F429 DMA2D加速
The database executes truncate table cm_ CHECK_ ITEM_ How does his recover
解析:C++如何实现简单的学生管理系统(源码分享)
自定义室内地图在线工具
From Silicon Valley to Xiaomi, Cui Baoqiu's 25 years of open source life
How to choose the development of Biao fan interactive interpretation program?