dragon0118 2019-04-14 11:47
浏览 52

如何从某人的站点到我的页面获取SMS API身份验证ID

I'm setting up a web application and want to send sms to my clients on a transaction. I bought the services from a broadcaster for sending sms. They provide me API for this purpose. By using the API when I send a request to broadcaster, they generate Authentication / Session ID that expires after 30 minutes of inactivity. How I can store that Session ID in my PHP variable.

    <!DOCTYPE html>
<html>
<head>
    <title>Get ID</title>
</head>
<body>

<form method="POST" >
    <input type="hidden" name="msisdn" value="92345">
    <input type="hidden" name="password" value="RN12345">
    <input type="submit" name="submit" value="Get ID">
</form>


<?php
if (isset($_POST["submit"])) {
    ob_start();
    require_once 'https://telenorcsms.com.pk:27677/corporate_sms2/api/auth.jsp';
    $output = ob_get_clean();
    echo $output;
}
?>

</body>
</html>

I expect to return Authentication ID as output i.e. RE0123456789

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 基于卷积神经网络的声纹识别
    • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
    • ¥100 为什么这个恒流源电路不能恒流?
    • ¥15 有偿求跨组件数据流路径图
    • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
    • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
    • ¥15 CSAPPattacklab
    • ¥15 一直显示正在等待HID—ISP
    • ¥15 Python turtle 画图
    • ¥15 stm32开发clion时遇到的编译问题