[Alibaba Cloud] SMS service

Table of contents

1. Pre-processing technology: Alibaba Big Fish

1.1 Overview

1.2 Activation

1.3 Signature management

1.3.1 Signature Overview

1.3.2 Add signature

1.3.3 Use

1.4 Template management

1.4.1 Template overview

1.4.2 Add template

1.4.3 Use

1.5 Online documentation

1.5.1 Open online documents

1.5.2 Using online documentation

1.6 Use tools to send text messages

1.7 Change your account

1. Pre-processing technology: Alibaba Big Fish

1.1 Overview

  • Alibaba Big Fish (formerly Alibaba Big Fish) is a product of Alibaba Communications, integrating the communication capabilities of the three major operators (China Mobile, China Unicom, and China Telecom)

  • Alibaba provides personalized services including SMS, voice, direct data recharge, private line, store mobile phone number, etc.

1.2 Activation

  • To develop SMS service, refer to the “alidayu.doc” document

1.3 Signature management

1.3.1 Signature Overview

  • What is a signature: In a text message, the company information is described.

 

1.3.2 Add signature

 

1.3.3 Use

 

1.4 Template management

1.4.1 Template overview

  • Template: used to display text messages in a fixed format. Each user displays different content. Variable placeholders are used in the template.

 

1.4.2 Add template

 

 

1.4.3 Use

 

1.5 Online documentation

1.5.1 Open online documents

 

 

1.5.2 Using online documentation

https://api.aliyun.com/new"746" src="https://img-blog.csdnimg.cn/d918202cc5624b34996244702038e488.png" width="1148"> 

 

  • Recharge and try again

1.6 Use tools to send text messages

  • Step 1: Modify the pom.xml file and add Alibaba Big Fish dependency

  • Step 2: Copy the tool class

  • Step 3: Test

  • Step 1: Modify the pom.xml file and add Alibaba Big Fish dependency (existing)

    <! -- Short Message -->
    <dependency>
       <groupId>com.aliyuncs</groupId>
       <artifactId>aliyun-java-sdk-core</artifactId>
    </dependency>
    <dependency>
       <groupId>com.aliyuncs.dysmsapi</groupId>
       <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
    </dependency>

  • Step 2: Copy the tool class (existing): SmsUtils

 

//Send SMS SendSmsResponse sendSmsResponse = SmsUtil.sendSms("18706597301", "Yu Fuxin", "521", "Call you to get up at two o'clock to go to the toilet", "13699282444"); //Response code (Alibaba definition) System.out.println(sendSmsResponse.getCode()); //Response information System.out.println(sendSmsResponse.getMessage());

1.7 Change your account

  • Online documentation (new version), content that needs to be modified

     

  • What needs to be modified when using tool classes

     

  • AccessKeyId and accessSecret obtained?

Related Posts

Java login Kerberos authentication expiration problem

The value taken out from Redis by redisTemplate.opsForValue().get(KEY) is null and the stored key is quoted.

[Distributed cache] Distributed cache-caching technology

SpringBoot unit testing-JUnit5

java.lang.StackOverflowError

SpringBoot integrates Jwt (detailed steps + illustrations)

Tutorial on quickly setting up a java back-end development environment with Docker (detailed graphic and text combination)

Implement the operations of creating directories and files in java

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*