C # 's flying letter Fetion SMS API Interface Use example

Source: Internet
Author: User

Fly free SMS API Interface call Way (access to the following URL via HTTP, support get and post): Http://sms.api.bz/fetion.php?username= your mobile flying letter login Mobile phone number &password= Your mobile flying Letter login Password &sendto= receive the message of the Flying friend mobile phone number (can also be your own mobile phone number) &message= SMS content

Note: The maximum length of the text message is 180 characters, and more than 180 Chinese characters are not sent. The returned information is UTF-8 encoded in Chinese text information.

May 28, 2009 Add: Fly free SMS API interface call mode (via HTTPS encrypted tunnel access to the following URLs, support get and post, further guarantee your password security): Https://sms.api.bz/fetion.php?username = Your mobile flying Letter login Mobile phone number &password= your mobile flying letters login password &sendto= receive SMS message of the Flying friend mobile phone number (can also be your own mobile phone number) &message= SMS content

Note: The maximum length of the text message is 180 characters, and more than 180 Chinese characters are not sent. The returned information is UTF-8 encoded in Chinese text information.

Source: Zhang Yi Gao, his APMs is also very strong.

Send instance: I wrote it myself ~ C # 's

C # CODE:

aspx

<% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "Default.aspx.cs" Inherits = "_default"%> <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> < HTML xmlns =" http://www.w3.org/1999/xhtml "> < head runat =" server "> < title > SMS Send </title >
 Using System; Using System.Data; Using System.Configuration; Using System.Web; Using System.Net; Using System.Web.Security; Using System.Web.UI; Using System.Web.UI.WebControls; Using System.Web.UI.WebControls.WebParts; Using System.Web.UI.HtmlControls; Public partial class _default:system.web.ui.page {protected void Send_click (object sender, EventArgs e) {string num = Tel. Text; String contents = content. Text; String url = "https://sms.api.bz/fetion.php?username=13800000000" + "&password=00000000000000&sendto=" + num + "&message=" + contents; HttpWebRequest req = (HttpWebRequest) httpwebrequest.create (URL); Req. method = ' Get '; using (WebResponse WR = req. GetResponse ()) {Response.Write ("SMS sent successfully.) "); } } }
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.