# TMS API
为方便合作团队通过原生代码接入方式接入腾讯出行服务,腾讯出行服务平台通过TMS API来提供一系列平台接口,使得合作伙伴获得以下能力:
- 通过腾讯出行服务网关转发网络请求
- 获取用户账号信息
- 获取用户地理位置、用户当前选择城市
- 其他
示例代码
const tms = getApp().tms;
const { createRequest, md5 } = tms;
// 发送网络请求
const $ = createRequest();
$.get(apiPath).then((resp) => {
// ...
});
// md5 hash
const hash = md5('hello');
// ...
基础 →