从会话 ID 和服务器 URL 中获取用户 ID [英] Get UserId from the Session Id and Server URL

查看:27
本文介绍了从会话 ID 和服务器 URL 中获取用户 ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,我将在其中获取会话 ID 和服务器 URL(网络服务方法的参数).

I have a requirement, where I will be getting the Session Id and Server URL(parameters of a webservice method).

这样说:

会话 ID : 00D900000xxxxxx!ARUAQOb4VVoQR1UXlY_Hvuy1DdKdN6nSfnNJKYwPTF9R3tYuA2jzBsWXHIGDQUFL13iebnYSDKKC45H98TzVxxxxxxxxxx

Session ID : 00D900000xxxxxx!ARUAQOb4VVoQR1UXlY_Hvuy1DdKdN6nSfnNJKYwPTF9R3tYuA2jzBsWXHIGDQUFL13iebnYSDKKC45H98TzVxxxxxxxxxx

服务器网址:https://ap1.salesforce.com/services/Soap/u/12.0/00D900000xxxxxx

现在我需要从这两个中获取用户 ID(或任何其他用户详细信息).

Now i need to get the User Id(or any other user details) from these two.

提前致谢!!

尼丁

推荐答案

您可以使用 SOAP API,它有一个 GetUserInfo 方法.调用此方法将返回 GetUserInfoResult 对象,它将包含与会话关联的用户 ID.

You could use the SOAP API, which has a GetUserInfo method. Calling this method will return a GetUserInfoResult object, which will contain the user ID associated to the session.

这篇关于从会话 ID 和服务器 URL 中获取用户 ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆