How to Get RootFolderId By UserId in DescribeUser Amazon Workdocs API?

0

I have UserId, and I need the root folder id for that particular user. What I have done is, used the DescribeUser API of AmazonWorkdocs And provided id in UserIds Query. This API is working fine in postman. But when I'm using the same for My project (NetCore) it returns {{"Message": "Invalid SigV4 credentials."}} The code is provided below.

var userRequest = new ESBMessage();
                    userRequest.LocalPath = String.Format("/api/v1/users");
                    userRequest.Http.Method = "GET";
                    //userRequest.Http.Query.Add("organizationId", OrganizationId);
                    userRequest.Http.Query.Add("userIds", userId);// UserId contains id of user
                    SetAuthenticationHeader(userRequest);
                    var driveList = _client.CallRestApi(userRequest, GetRequestURI(), true);
질문됨 일 년 전243회 조회
1개 답변
0
수락된 답변

Encode UserId

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠