GetShare() 공개 메소드

Get a Share.

It mirrors To the following Smartsheet REST API method:
GET /workspaces/{workspaceId}/shares/{shareId}
GET /sheets/{sheetId}/shares/{shareId}
GET /sights/{sightId}/shares/{shareId}
GET /reports/{reportId}/shares/{shareId}

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public GetShare ( long objectId, string shareId ) : Api.Models.Share
objectId long the ID of the object To share
shareId string the ID of the share instance
리턴 Api.Models.Share
예제 #1
0
        public virtual void TestGetShare()
        {
            server.setResponseBody("../../../TestSDK/resources/getShare.json");

            Share share = shareResourcesImpl.GetShare(1234L, 12344L);

            Assert.AreEqual("*****@*****.**", share.Email);
            Assert.AreEqual(AccessLevel.ADMIN, share.AccessLevel);
            Assert.AreEqual(8166691168380804L, (long)share.ID);
        }
		public virtual void TestGetShare()
		{
			server.setResponseBody("../../../TestSDK/resources/getShare.json");

			Share share = shareResourcesImpl.GetShare(1234L, "12sdf3fg44L");

			Assert.AreEqual(null, share.Email);
			Assert.AreEqual(2331373580117892, share.GroupId);
			Assert.AreEqual(AccessLevel.ADMIN, share.AccessLevel);
			Assert.AreEqual("AQAISF82FOeE", share.Id);
			Assert.AreEqual("Group 1", share.Name);

		}