Skip to content

Latest commit

 

History

History
80 lines (50 loc) · 2.72 KB

API.md

File metadata and controls

80 lines (50 loc) · 2.72 KB

20140707-20140709 练习项目 API文档

IP address : 192.168.1.138

####登陆/主页

GET方法

URL : localhost:8000

平台管理员专用

有米广告回调接口

Get 方法

URL : localhost:8000/order

接口对应DB设计

Parameters:

Para Name Type Description
order_id string Required. 有米生成的订单编号
app_id string Required. 软件ID
ad_name int Required. 广告名
ad_id int Required. 广告ID
user_id int Required. 用户ID.
dev_id string Required. 手机串号
chn int Required. Channel
price double Required. 开发者获得的分红
points int Required. 用户获得的积分数
time int Required. 有米生成的时间戳
sig stirng Required. 有米保留参数
sign string Required. 用固定的函数计算得到的签名值
有米回调 localhost接口 示例:
  • localhost:8000/youmi_test?order=YM121201PWxw0DGr0f&app=2f3ca4oge6894826&ad=美丽说&adid=476&user=ef2&chn=0&points=140&price=0.93&time=1354851585&device=98fee7g64057&sig=b68184af&sign=ca8ac4661e283eb8fe119ccabbcd2352

  • localhost:8000/youmi_test?order=YM130402cygr_UTb42&app=30996ced018a2a5e&ad=KC网络电话&user=1141058&device=50ead626ae6e&chn=0&points=7&time=1364890524&sig=15b3dfe0&price=0.749&adid=853&sign=ea8637579f383057ae5ec7eb16826eb7

用户积分兑换接口

POST方法

URL : localhost:8000/points_test

接口对应DB设计

Parameters:

Para Name Type Description
user_id int 用户ID
points_out double 兑换点数
type int 兑换货币类型
updated_at datetime 更新日期
created_at datetime 创建日期
兑换接口示例

URL : localhost:8000/points_test?user=3826&counts=2.00&type=1

兑换记录

GET方法

URL : localhost:8000/transactions

返回所有兑换类型

GET方法

URL : localhost:8000/type