华为云WELINK-返回结果:响应消息体

时间:2024-09-18 09:26:23

响应消息体

响应消息体通常以结构化格式返回,与响应消息头中Content-type对应,传递除响应消息头之外的内容。

对于统一认证获取access_token接口,返回如下消息体。

{     "access_token": "eyJraWQiOiJjZjE0Y2EzZi1lZTM3LTRhYWItYWY5ZS1kMjJiYzY5NDZkZDIiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxMjMwNDAwMDAxNyIsImF1ZCI6ImFpLXNoZW5nc2ktY2xpZW50LWlkIiwibmJmIjoxNjkyNzc0MTUyLCJzY29wZSI6WyJwcm9maWxlIl0sImlzcyI6Imh0dHA6XC9cLzEwLjI0Ny4xMzMuNTg6ODAwMyIsImV4cCI6MTY5Mjc3NTk1MiwiaWF0IjoxNjkyNzc0MTUyLCJhdXRob3JpdGllcyI6IlBFUk1JU1NJT05fQUxMIn0.fqWdl18V0tUNeR6QXdRJj8ZaQ5cG_JXx1ZYaMfJhOQfcIS_L1qYdOz44T88KbWvvF-gzbY0zAiNAYomglK6eGwfFmc38Gfkga-T9AtIqE_4yQlN-1nH IDT 2irn_CLhCPVH2ZpI-GtVUbWHstk-IlSsrznbVv9QLByS45JgBzcXtI8Nb0v2AehqPpDXxCLr0F_PUg58ldLKZtC6MFN_AcFfCWE9V_h6P8B9x3aUKJnOjAhx9Hmt52DbWeeZBTPq6VD1dqffORrP28d6nwac0bgLmfJUB9Y0S9otSoWFBryE-vY1TXtd1nYBfcKkGXlsWyepocfvE4aJdJikd95Rr9tI_kR50z7KqC9_nmtMt2v9UpN100W5lY9GRkhurwaMziKEe0v9mkjAROliiX5N5JuQQ4If3Nx_BGJL-OEy6tQiqdOE0dGxDz9KtWSVIp_UlY9eb8GCQszXZa9-jYJhPPpgixLA5ZEWh_KUHkctZ7877VMDLJrFI-D964XqNkXTUk",     "refresh_token": "Y1DyiJFg6KaBi-q0xgiqNQM5QrhoGOI-lgTpihU5xl18eiuSP95kSHz_YBCB7pL_wlj9-6Cun97JLxvv9GfSTzMhxvdFGmsvb3EbphPu-zKqVMWrbmPbw5ghXiFPcuav",     "scope": "profile",     "token_type": "Bearer",     "expires_in": 1800 }

当接口调用出错时,会返回错误码及错误信息说明,错误响应的Body体格式如下所示。

{     "code": 61010202,     "data": "invalid_grant",     "message": "无效的code" }

其中,error_code表示错误码,error_msg表示错误描述信息。

support.huaweicloud.com/usermanual-welink/welink_pcuse_roundtable_259.html