ServerResource
API Access class for the server
Source code in src/specklepy/api/resources/current/server_resource.py
get
get() -> ServerInfo
version
Get the server version
Returns:
| Type | Description |
|---|---|
Any
|
the server version in the format (major, minor, patch, (tag, build)) |
...
|
eg (2, 6, 3) for a stable build and (2, 6, 4, 'alpha', 4711) for alpha |
Source code in src/specklepy/api/resources/current/server_resource.py
apps
apps() -> Dict
Get the apps registered on the server
Returns:
| Type | Description |
|---|---|
Dict
|
dict -- a dictionary of apps registered on the server |
Source code in src/specklepy/api/resources/current/server_resource.py
create_token
Create a personal API token
Returns:
| Type | Description |
|---|---|
str
|
str -- the new API token. note: this is the only time you'll see the token! |
Source code in src/specklepy/api/resources/current/server_resource.py
revoke_token
Revokes (deletes) a personal API token
Returns:
| Type | Description |
|---|---|
bool
|
bool -- True if the token was successfully deleted |