# API列表

所有开放API见下表,可作为索引参考。

大类 接口 SDK支持 说明
Profile GET https://api.sjtu.edu.cn/v1/me/profile 查询我的用户信息
Profile GET https://api.sjtu.edu.cn/v1/profile/{jaccount|userId} 查询指定用户的信息
Task POST https://api.sjtu.edu.cn/v2/task/message 发送任务更新消息
Enterprise GET https://api.sjtu.edu.cn/v1/enterprise/user/positions 取用户的岗位、身份信息
Enterprise GET https://api.sjtu.edu.cn/v1/enterprise/user/rights?account={account} 取用户的权限
Enterprise GET https://api.sjtu.edu.cn/v1/enterprise/position/dept:post/users 查询岗位中的用户信息
Enterprise PUT https://api.sjtu.edu.cn/v1/enterprise/position/dept:post/users?code={account} 为用户配置岗位
Enterprise DELETE https://api.sjtu.edu.cn/v1/enterprise/position/dept:post/users?code={account} 取消用户岗位授权
Enterprise GET https://api.sjtu.edu.cn/v1/enterprise/organizes 查询部门
Enterprise GET https://api.sjtu.edu.cn/v1/enterprise/calendar?from={from}&to={to} 查询校历
File PUT https://api.sjtu.edu.cn/v1/file 上传文件
File GET https://api.sjtu.edu.cn/v1/file/{id} 下载文件
File POST https://api.sjtu.edu.cn/v1/file/{id} 修改文件
File GET https://api.sjtu.edu.cn/v1/file/{id}/meta 获取文件信息
File POST https://api.sjtu.edu.cn/v1/file/{id}/meta 修改文件信息
Notification PUT https://api.sjtu.edu.cn/v1/notification 发送通知
Notification GET https://api.sjtu.edu.cn/v1/notification/status?id={notificationId} 获取通知状态
Notification POST https://api.sjtu.edu.cn/v1/notification/status 标记通知状态
Mail GET https://api.sjtu.edu.cn/v1/mails/[{unread|read}] 取邮件
Mail PUT https://api.sjtu.edu.cn/v1/mail/ 发邮件
Mail POST https://api.sjtu.edu.cn/v1/mail/{mailId} 标记邮件状态
Finance GET https://api.sjtu.edu.cn/v1/finance/appointments/{businessType}/{businessNo} 获取单个业务详情
Finance <Api method="GET" url="https://api.sjtu.edu.cn/v1/finance/appointments/{businessType} 获取已完成或已撤销/退回的业务
Finance PUT https://api.sjtu.edu.cn/v1/finance/appointments/{businessType}/{businessNo} 提交新的业务
Finance DELETE https://api.sjtu.edu.cn/v1/finance/appointments/{businessType}/{businessNo} 撤销业务
Finance POST https://api.sjtu.edu.cn/v1/finance/appointments/{businessType}/{businessNo} 标记业务处理完成
Education GET https://api.sjtu.edu.cn/v1/lesson/{code|bsid} 获取教学班信息
Education GET https://api.sjtu.edu.cn/v1/me/lessons[/{term}] 获取学生课表
Card GET https://api.sjtu.edu.cn/v1/me/card 获取校园卡信息
Card PUT https://api.sjtu.edu.cn/v1/me/card 校园卡开户
Card GET https://api.sjtu.edu.cn/v1/me/card/user 查询校园卡身份信息
Card GET https://api.sjtu.edu.cn/v1/me/card/transactions 获取交易记录信息
Card POST https://api.sjtu.edu.cn/v1/me/card 设置卡信息和状态
Card GET https://api.sjtu.edu.cn/v1/me/card/photo 获取校园卡照片
Card POST https://api.sjtu.edu.cn/v1/me/card/photo 更新校园卡照片
Card GET https://api.sjtu.edu.cn/v1/me/card/recharge 查询充值请求
Card POST https://api.sjtu.edu.cn/v1/me/card/recharge 提交充值请求
Card POST https://api.sjtu.edu.cn/v1/card/foundLostCard 提交拾卡信息
Card GET https://api.sjtu.edu.cn/v1/card 根据学工号或物理卡号查询卡信息
Card POST https://api.sjtu.edu.cn/v1/card 冻结解冻校园卡
Card GET https://api.sjtu.edu.cn/v1/card/transfer 查询校园卡余额转结订单
Card POST https://api.sjtu.edu.cn/v1/card/transfer 校园卡余额转结
Unicode GET https://api.sjtu.edu.cn/v1/unicode 思源码校验
Unicode POST https://api.sjtu.edu.cn/v1/unicode 开通思源码
Unicode GET https://api.sjtu.edu.cn/v1/unicode/identity 获取身份码、获取思源码开通状态
Unicode GET https://api.sjtu.edu.cn/v1/unicode/identity/advertising 获取运营位信息
Unicode GET https://api.sjtu.edu.cn/v1/unicode/pay 获取支付码
Unicode GET https://api.sjtu.edu.cn/v1/unicode/parameters 获取支付码对接参数
Unicode GET https://api.sjtu.edu.cn/v1/unicode/transactions 查询交易记录
Barcode GET https://api.sjtu.edu.cn/v1/barcode/qr/{fileName}.{imageType} 二维码
Barcode GET https://api.sjtu.edu.cn/v1/barcode/{type}/{value}.{imageType} 条形码
Calendar POST https://api.sjtu.edu.cn/v1/calendar/event 同步日程安排
Calendar DELETE https://api.sjtu.edu.cn/v1/calendar/event/{id} 删除日程安排
Signature POST https://api.sjtu.edu.cn/v1/signature/{eSignCode} 签章文件