Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is ThinkAPI short message service in php?

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces what the ThinkAPI short message service in php refers to. It has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let the editor take you to know it.

Service Overview

In order to better service developers and ThinkPHP ecology, the official selection of high-quality and stable SMS service providers officially launched SMS API service. Currently, only CAPTCHA and notification SMS are supported, and more SMS services will be launched one after another.

1. Because the SMS service is planned and designed separately, the calling interface is integrated into the ThinkAPI service.

Therefore, we have made a unified plan for the SMS API interface, and more SMS service channels and SMS services will be connected in the future. As the call parameters and return data specifications have been unified, it will not affect the use of the original interface.

API call (instructions for call)

2. Before sending SMS messages, you must first complete the application for templates and signatures.

After logging in to the market, click the user avatar in the upper right corner to select "my Service-> SMS Service", and apply in signature management and template management. SMS messages can only be sent and called after approval. Once the inspection finds that any illegal content is sent, we will freeze the signature and template, the package fee that has been purchased is non-refundable, and reserves the right to pursue the relevant responsibility.

Request address

GET https://api.topthink.com/sms/send

Note: the final confirmation of the success of SMS delivery is asynchronously confirmed by the operator, so you need to confirm it in my service-> SMS service-> sending record. The final billing is also based on the number of successes in the sending record.

SDK call

$client = new Client ("YourAppCode"); $result = $client- > smsSend ()-> withSignId ('78')-> withTemplateId (' 234')-> withPhone ('15687902345')-> withParams (' {"code": "7865"}')-> request (); dump ($result)

More interface services

ThinkAPI Unified API Interface Service is a set of interface invocation services and SDK encapsulated by official joint partners, which aims to help ThinkPHP developers call all kinds of API interfaces and services provided by official and third parties more conveniently and cheaply, so as to better build developer ecology.

Thank you for reading this article carefully. I hope the article "what is ThinkAPI short message Service in php" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report