All URIs are relative to https://urlr.me/api/v1
Method | HTTP request | Description |
---|---|---|
get_folders | GET /folders/{team_id} | Get folders of team |
GetFolders200Response get_folders(team_id)
Get folders of team
- Bearer (JWT) Authentication (bearerAuth):
import urlr
from urlr.models.get_folders200_response import GetFolders200Response
from urlr.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://urlr.me/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = urlr.Configuration(
host = "https://urlr.me/api/v1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (JWT): bearerAuth
configuration = urlr.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with urlr.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = urlr.FoldersApi(api_client)
team_id = 'ffefc6c4-d970-4373-a867-2a69c8be2c89' # str | Team API ID
try:
# Get folders of team
api_response = api_instance.get_folders(team_id)
print("The response of FoldersApi->get_folders:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling FoldersApi->get_folders: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
team_id | str | Team API ID |
- Content-Type: Not defined
- Accept: application/json, application/problem+json
Status code | Description | Response headers |
---|---|---|
200 | Folders of team | - |
404 | Not Found | - |
401 | Unauthorized | - |
422 | Validation Failed | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]