-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying from URLR/api-clients-generation@13dd1381
- Loading branch information
Showing
122 changed files
with
4,326 additions
and
2,652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.5.0 | ||
7.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
# urlr.AccessTokensApi | ||
|
||
All URIs are relative to *https://urlr.me/api/v1* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**create_access_token**](AccessTokensApi.md#create_access_token) | **POST** /access_tokens/create | Get an access token | ||
[**refresh_access_token**](AccessTokensApi.md#refresh_access_token) | **POST** /access_tokens/refresh | Refresh an access token | ||
|
||
|
||
# **create_access_token** | ||
> CreateAccessToken200Response create_access_token(create_access_token_request=create_access_token_request) | ||
Get an access token | ||
|
||
### Example | ||
|
||
|
||
```python | ||
import urlr | ||
from urlr.models.create_access_token200_response import CreateAccessToken200Response | ||
from urlr.models.create_access_token_request import CreateAccessTokenRequest | ||
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" | ||
) | ||
|
||
|
||
# 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.AccessTokensApi(api_client) | ||
create_access_token_request = urlr.CreateAccessTokenRequest() # CreateAccessTokenRequest | Your credentials (optional) | ||
|
||
try: | ||
# Get an access token | ||
api_response = api_instance.create_access_token(create_access_token_request=create_access_token_request) | ||
print("The response of AccessTokensApi->create_access_token:\n") | ||
pprint(api_response) | ||
except Exception as e: | ||
print("Exception when calling AccessTokensApi->create_access_token: %s\n" % e) | ||
``` | ||
|
||
|
||
|
||
### Parameters | ||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**create_access_token_request** | [**CreateAccessTokenRequest**](CreateAccessTokenRequest.md)| Your credentials | [optional] | ||
|
||
### Return type | ||
|
||
[**CreateAccessToken200Response**](CreateAccessToken200Response.md) | ||
|
||
### Authorization | ||
|
||
No authorization required | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
### HTTP response details | ||
|
||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
**200** | Access token | - | | ||
**401** | Error | - | | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
||
# **refresh_access_token** | ||
> CreateAccessToken200Response refresh_access_token(refresh_access_token_request=refresh_access_token_request) | ||
Refresh an access token | ||
|
||
### Example | ||
|
||
|
||
```python | ||
import urlr | ||
from urlr.models.create_access_token200_response import CreateAccessToken200Response | ||
from urlr.models.refresh_access_token_request import RefreshAccessTokenRequest | ||
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" | ||
) | ||
|
||
|
||
# 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.AccessTokensApi(api_client) | ||
refresh_access_token_request = urlr.RefreshAccessTokenRequest() # RefreshAccessTokenRequest | Your credentials (optional) | ||
|
||
try: | ||
# Refresh an access token | ||
api_response = api_instance.refresh_access_token(refresh_access_token_request=refresh_access_token_request) | ||
print("The response of AccessTokensApi->refresh_access_token:\n") | ||
pprint(api_response) | ||
except Exception as e: | ||
print("Exception when calling AccessTokensApi->refresh_access_token: %s\n" % e) | ||
``` | ||
|
||
|
||
|
||
### Parameters | ||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**refresh_access_token_request** | [**RefreshAccessTokenRequest**](RefreshAccessTokenRequest.md)| Your credentials | [optional] | ||
|
||
### Return type | ||
|
||
[**CreateAccessToken200Response**](CreateAccessToken200Response.md) | ||
|
||
### Authorization | ||
|
||
No authorization required | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
||
### HTTP response details | ||
|
||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
**200** | Refreshed access token | - | | ||
**401** | Error | - | | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
Oops, something went wrong.