1 Star 0 Fork 0

SmartCloud2025 / open189

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
开始使用
1.导入database.sql
2.配置/conf/ioc/dao.js 数据库信息
3.配置 src/cn/open189/interFace/RandCodeInterFace.java 相关信息
4.配置 src/cn/open189/interFace/Url2ShortInterFace.java 相关信息
PS: ACCESS_TOKEN 生成方式 浏览器打开 https://oauth.api.189.cn/emp/oauth2/v2/authorize?app_id=您应用的APPID&redirect_uri=您应用填的回调地址&app_secret=您应用的APPSECRT&response_type=token
成功返回链接里的access_token的值就是需要的ACCESS_TOKEN


操作方法

1.网址缩短
调用方式 POST/GET
地址 http://您的应用地址/url/long2short?url=需缩短的网址
成功返回 {"error":0,"url":"http://189.io/~hVPnn"}
失败返回 {"error":1}

2.短网址还原
调用方式 POST/GET
地址 http://您的应用地址/url/short2long?url=需还原的缩短的网址
成功返回 {"error":0,"url":"http://open.189.cn/"}
失败返回 {"error":1}

3.发送验证码
调用方式 POST/GET
地址 http://您的应用地址/randcode/send?mobi=手机号码
成功返回 {"error":0}
失败返回 {"error":1}

4.清空某手机接收到的验证码
调用方式 POST/GET
地址 http://您的应用地址/randcode/empty?mobi=手机号码
成功返回 {"error":0}
失败返回 {"error":1}

5.验证接收到的验证码
调用方式 POST/GET
地址 http://您的应用地址/randcode/verify?mobi=手机号码&randcode=接收到的验证码
成功返回 {"error":0}
失败返回 {"error":1}
The MIT License (MIT) Copyright (c) 2013 Howe Chiang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

open.189.cn电信能力实现接口 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/SmartCloud/open189.git
git@gitee.com:SmartCloud/open189.git
SmartCloud
open189
open189
master

搜索帮助