Joke Collection Website - Blessing messages - How does thinkphp3.2.3 access Alibaba Cloud Dunxin interface?

How does thinkphp3.2.3 access Alibaba Cloud Dunxin interface?

1, introduce the short message interface php file of Ali Dayu in the project common folder.

2. Introduce global variables through function files.

3. Enter the password.

What needs to be explained here is that initializing the client object requires various parameters applied in the platform, namely appkey and secretKey, and also requires a template number $SmsTemplateCode, which is also applied through the platform.

I wrote the code myself. You can ask if you don't understand anything.