"ASP" Gen Blue 253 Cloud communication platform International SMS API interface Demo

Source: Internet
Author: User

<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%>

<%

Function Post (Url,data)

Dim Https

Set Https=server.createobject ("MSXML2. XMLHTTP ")

Https.open "POST", Url,false

Https.setrequestheader "Content-type", "Application/json"

Https.send data

If Https.readystate=4 Then

Dim objstream

Set objstream = Server.CreateObject ("ADODB.stream")

Objstream. Type = 1

Objstream. Mode =3

Objstream. Open

Objstream. Write Https.responsebody

Objstream. Position = 0

Objstream. Type = 2

Objstream. Charset = "Utf-8"

Post = objstream. ReadText

Objstream. Close

Set objstream = Nothing

Set https=nothing

End If

End Function


Dim target,post_data

target = "Http://intapi.253.com/send/json"

'//mobile number, format (area code + mobile number), for example: 8615800000000, of which 86 is China's area code

("253 Cloud Communication" Hello, your verification code is 999999) ""} "

Response. Write (Post (Target,post_data))

"//Please parse the JSON format returned by post (Target,post_data) and implement your own logic

%>


"ASP" Gen Blue 253 Cloud communication platform International SMS API interface Demo

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.