Admin
Class in BIM.works_SDK.
API catalogue · BIM.works_SDK · Class
.NET#
public class Admin : SdkNamespaceAPI Namespace for admin tasks
Inheritance and interfaces#
System.Object- SdkNamespace
Members#
| Member | Kind | Description |
|---|---|---|
| Admin(BimWorksClient) | Constructor | |
| CreateApiToken(Guid, string, params ApiTokenCredential[]) | Method | Create a new API Token. API Tokens are stored in the BIM.works Repository and generally long-lived. API Tokens can be revoked. API Tokens should be used only… |
| CreateApiToken(Guid, string, ISet<Scope>, DateTime?) | Method | Create an API token for nodeUuid restricted to the given scopes (preferred over READ/WRITE credentials). The token value is only returned here, never again |
Admin(BimWorksClient)#
.NET#
public Admin(BimWorksClient bimWorksClient)Parameters#
| Name | Type | Description |
|---|---|---|
bimWorksClient |
BimWorksClient |
CreateApiToken(Guid, string, params ApiTokenCredential[])#
.NET#
public string CreateApiToken(Guid nodeUuid, string name, params ApiTokenCredential[] apiTokenCredentials)Create a new API Token. API Tokens are stored in the BIM.works Repository and generally long-lived. API Tokens can be revoked. API Tokens should be used only in backend applications and not in any frontend applications. If you want to use tokens in the frontend of your application, use a short-lived token
Parameters#
| Name | Type | Description |
|---|---|---|
nodeUuid |
System.Guid |
|
name |
System.String |
|
apiTokenCredentials |
BIM.works_SDK.ApiTokenCredential[] |
CreateApiToken(Guid, string, ISet<Scope>, DateTime?)#
.NET#
public string CreateApiToken(Guid nodeUuid, string name, ISet<Scope> scopes, DateTime? expiresOn = null)Create an API token for nodeUuid restricted to the given scopes (preferred over READ/WRITE credentials). The token value is only returned here, never again
Parameters#
| Name | Type | Description |
|---|---|---|
nodeUuid |
System.Guid |
|
name |
System.String |
|
scopes |
System.Collections.Generic.ISet{BIM.works_SDK.Scope} |
|
expiresOn |
System.Nullable{System.DateTime} |
The day the token stops working; null for the server's default of one month |
Inherited members#
- BimWorksClient
- Execute(Request)
System.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString