当前位置:网站首页>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
边栏推荐
- Learning notes of millet mall, day 5: ES full text search
- R8 编译器: 为 Kotlin 库和应用 '瘦身'
- Mongodb source code implementation series network transport layer module implementation 3
- 小程序调用原生onShareAppMessage分享,imageUrl参数是mp4格式怎么办
- Git + -- Code hosting in the history of version management
- Custom indoor map online tool
- 如何使用RTSP推流组件EasyPusher将MP4文件推到EasyDarwin开源平台?
- 菜鸟福音,28本书籍循序渐进让你成为大牛!(附学习大纲一份)
- [God level operation] analyze the Ninja code with the traditional Chinese thoughts of Confucius and Laozi!
- 磁阻式随机存储器MRAM基本原理
猜你喜欢

第三阶段 Day19 用户回显 封装Cookie 商品远程调用 购物车模块 CRUD操作

Explain git in detail

Ultra simple integration of Huawei system integrity testing, complete equipment security protection

如何优雅阻止view UI 的 Switch 切换?

【面试经验】BAT程序员面试200人,常见最常问的面试问题做出解析

【涂鸦物联网足迹】涂鸦云平台接口说明

How to implement a simple student management system with C + +

RabbitMQ安装

自定义室内地图在线工具

非常值得一看的 Curl 用法指南
随机推荐
How to choose the development of Biao fan interactive interpretation program?
Easyexcel exports according to the filter column (not empty in the middle, the order can be adjusted)
Single linked list inversion
How to page query after the 10 billion level data sub table?
Rookie gospel, 28 books step by step to make you a big bull! (a copy of learning syllabus attached)
运用强大的 PowerBI 桑基图表示复杂运营业务流
Numeric keyboard with decimal point in IOS
配置ng-zerro的nz-date-picker时间选择组件
以太网模块是什么,以太网模块的功能和特点
Gesture switch background, let live with goods more immersive
R8 compiler: tailoring kotlin libraries and Applications
手势切换背景,让直播带货更加身临其境
云数据库的本质是什么?探究华为云数据库的核心价值
Chrome扩展程序热更新方案:2.基于双缓存更新功能模块
Android instance - simple login layout
单链表反转
Rabbitmq installation
浅谈API网关(API Gateway)如何承载API经济生态链
The database executes truncate table cm_ CHECK_ ITEM_ How does his recover
dat.GUI 打造可视化工具(一)