GithubHelp home page GithubHelp logo

chuanglan253-go's Introduction

chuanglan

chuanglan-demo-go

go参数填写说明

//请登录zz.253.com获取API账号、密码以及短信发送的URL
    params["account"] = ""  //创蓝API账号 
    params["password"] = "" //创蓝API密码
    params["phone"] = "18721755342" //手机号码
	
	//设置您要发送的内容:其中“【】”中括号为运营商签名符号,多签名内容前置添加提交
    params["msg"] =url.QueryEscape("【253云通讯】您好,您的验证码是999999")  
    params["report"] = "true"
    bytesData, err := json.Marshal(params)
    if err != nil {
        fmt.Println(err.Error() )
        return
    }
    reader := bytes.NewReader(bytesData)
    url := "http://xxx/msg/send/json"  //短信发送URL 
    request, err := http.NewRequest("POST", url, reader)

源码说明

  • 编码要求为utf-8,请先将编辑器底层语言设置为utf-8

  • 带有特殊字符的内容无法直接提交,需先将特殊字符进行urlencode编码后方能提交

  • 开发API可参考单元测试 doc/253云通讯PaaS短信云接口说明(JSON版).docx

联系我们

创蓝客服 链接

创蓝客服

文档链接- api文档

chuanglan253-go's People

Contributors

cl13916233914 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.