public GetWorkspace ( long workspaceId, bool loadAll, IEnumerable |
||
workspaceId | long | the workspace id |
loadAll | bool | Defaults to false. If true, loads all of the contents, including nested Folders. |
include | IEnumerable |
When specified with a value of "source", response will include the source for any sheet that was created from another sheet or template |
리턴 | Api.Models.Workspace |
public virtual void TestGetWorkspace() { server.setResponseBody("../../../TestSDK/resources/getWorkspace.json"); Workspace workspace = workspaceResources.GetWorkspace(1234L); Assert.AreEqual(995897522841476L, (long)workspace.ID); Assert.AreEqual("Bootcamp Company", workspace.Name); Assert.AreEqual(0, workspace.Sheets.Count); Assert.AreEqual(2, workspace.Folders.Count); Assert.AreEqual(AccessLevel.OWNER, workspace.AccessLevel); Assert.AreEqual("https://app.smartsheet.com/b/home?asdf", workspace.Permalink); }
public virtual void TestGetWorkspace() { server.setResponseBody("../../../TestSDK/resources/getWorkspace.json"); Workspace workspace = workspaceResources.GetWorkspace(1234L, false, null); Assert.AreEqual(7116448184199044, (long)workspace.Id); Assert.AreEqual("New workspace", workspace.Name); Assert.AreEqual(1, workspace.Sheets.Count); Assert.AreEqual(null, workspace.Folders); Assert.AreEqual(AccessLevel.OWNER, workspace.AccessLevel); Assert.AreEqual("https://app.smartsheet.com/b/home?lx=8Z0XuFUEAkxmHCSsMw4Zgg", workspace.Permalink); }