银泰商业账号权限-统一登录项目,根据token换取用户session信息及有效性判定
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
ticket | String | 可选 | 1234321abccde | 免登token一次有效 | |
types | String | 可选 | 2 | 返回数据类型 1MOS 2MIS 3商家端 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ResultDo | result | |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaMosauthTokenGetsessioninfoRequest req = new AlibabaMosauthTokenGetsessioninfoRequest(); req.setTicket( "1234321abccde" ); req.setTypes( "2" ); AlibabaMosauthTokenGetsessioninfoResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | < alibaba_mosauth_token_getsessioninfo_response > < result > < data > < mis_user_info_model > < lvl >1</ lvl > < com_name >银泰商业</ com_name > < com_code >1160</ com_code > < area_name >杭州区</ area_name > < area >123</ area > < seqno >10144985</ seqno > < sid >10144985</ sid > < store_code_list >HZ01,HZ02</ store_code_list > < store_code_list_split >HZ01|HZ02</ store_code_list_split > < store_list > < string >[ { "C": "1441"</ string > < string >"N": "西选环球店 } ]</ string > </ store_list > < username >银匙</ username > < user_id_str >10144985-银匙</ user_id_str > < store_no >HZ01</ store_no > < gz_no >10101</ gz_no > < depart_name >财务部</ depart_name > < mobile >130180XXXXX</ mobile > < dept_list > < string >[ { "C": "19644"</ string > < string >"N": "总经理室" } ]</ string > </ dept_list > < logo >1.jpg</ logo > < path >/path</ path > </ mis_user_info_model > < session_id >MOS_123</ session_id > < operator_id >1234567</ operator_id > </ data > < err_no >200</ err_no > < success_flag >true</ success_flag > < err_info >成功</ err_info > </ result > </ alibaba_mosauth_token_getsessioninfo_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|