Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Huluti committed Jun 16, 2024
1 parent 78db8a5 commit 3313458
Show file tree
Hide file tree
Showing 84 changed files with 1,530 additions and 70 deletions.
18 changes: 18 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ docs/CreateLink429Response.md
docs/CreateLink500Response.md
docs/CreateLinkRequest.md
docs/CreateLinkRequestMetatag.md
docs/CreateLinkRequestQrcode.md
docs/CreateQrCodeRequest.md
docs/CreateQrCodeRequestOneOf.md
docs/CreateQrCodeRequestOneOf1.md
docs/FoldersApi.md
docs/GetFolders200Response.md
docs/GetFolders200ResponseFoldersInner.md
docs/GetLink200Response.md
docs/GetLink200ResponseGeolinksInner.md
docs/GetLink200ResponseMetatag.md
docs/GetLink200ResponseQrcode.md
docs/GetLink401Response.md
docs/GetLink404Response.md
docs/GetLink422Response.md
Expand All @@ -24,6 +29,7 @@ docs/GetStatisticsRequest.md
docs/GetTeams200Response.md
docs/GetTeams200ResponseTeamsInner.md
docs/LinksApi.md
docs/QRCodesApi.md
docs/RefreshAccessToken401Response.md
docs/RefreshAccessTokenRequest.md
docs/StatisticsApi.md
Expand All @@ -42,12 +48,17 @@ test/test_create_link429_response.py
test/test_create_link500_response.py
test/test_create_link_request.py
test/test_create_link_request_metatag.py
test/test_create_link_request_qrcode.py
test/test_create_qr_code_request.py
test/test_create_qr_code_request_one_of.py
test/test_create_qr_code_request_one_of1.py
test/test_folders_api.py
test/test_get_folders200_response.py
test/test_get_folders200_response_folders_inner.py
test/test_get_link200_response.py
test/test_get_link200_response_geolinks_inner.py
test/test_get_link200_response_metatag.py
test/test_get_link200_response_qrcode.py
test/test_get_link401_response.py
test/test_get_link404_response.py
test/test_get_link422_response.py
Expand All @@ -56,6 +67,7 @@ test/test_get_statistics_request.py
test/test_get_teams200_response.py
test/test_get_teams200_response_teams_inner.py
test/test_links_api.py
test/test_qr_codes_api.py
test/test_refresh_access_token401_response.py
test/test_refresh_access_token_request.py
test/test_statistics_api.py
Expand All @@ -66,6 +78,7 @@ urlr/api/__init__.py
urlr/api/access_tokens_api.py
urlr/api/folders_api.py
urlr/api/links_api.py
urlr/api/qr_codes_api.py
urlr/api/statistics_api.py
urlr/api/teams_api.py
urlr/api_client.py
Expand All @@ -80,11 +93,16 @@ urlr/models/create_link429_response.py
urlr/models/create_link500_response.py
urlr/models/create_link_request.py
urlr/models/create_link_request_metatag.py
urlr/models/create_link_request_qrcode.py
urlr/models/create_qr_code_request.py
urlr/models/create_qr_code_request_one_of.py
urlr/models/create_qr_code_request_one_of1.py
urlr/models/get_folders200_response.py
urlr/models/get_folders200_response_folders_inner.py
urlr/models/get_link200_response.py
urlr/models/get_link200_response_geolinks_inner.py
urlr/models/get_link200_response_metatag.py
urlr/models/get_link200_response_qrcode.py
urlr/models/get_link401_response.py
urlr/models/get_link404_response.py
urlr/models/get_link422_response.py
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [2.2.0] - 2024-06-16

- Updated URLR API version to 1.2

## [2.1.0] - 2024-06-07

- Updated URLR API version to 1.1
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# urlr@2.1.0
# urlr@2.2.0

![PyPI - Version](https://img.shields.io/pypi/v/urlr) ![PyPI - Downloads](https://img.shields.io/pypi/dm/urlr) ![PyPI - License](https://img.shields.io/pypi/l/urlr)

This SDK is automatically generated with the [OpenAPI Generator](https://openapi-generator.tech) project.

- API version: 1.1
- Package version: 2.1.0
- API version: 1.2
- Package version: 2.2.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

For more information, please visit [https://urlr.me/en](https://urlr.me/en)
Expand Down Expand Up @@ -98,6 +98,7 @@ Class | Method | HTTP request | Description
*FoldersApi* | [**get_folders**](docs/FoldersApi.md#get_folders) | **GET** /folders/{team_id} | Get folders of team
*LinksApi* | [**create_link**](docs/LinksApi.md#create_link) | **POST** /links/create | Create a link
*LinksApi* | [**get_link**](docs/LinksApi.md#get_link) | **GET** /links/{link_id} | Get a link
*QRCodesApi* | [**create_qr_code**](docs/QRCodesApi.md#create_qr_code) | **POST** /qrcodes/create | Create a QR Code
*StatisticsApi* | [**get_statistics**](docs/StatisticsApi.md#get_statistics) | **POST** /statistics | Get statistics of a link
*TeamsApi* | [**get_teams**](docs/TeamsApi.md#get_teams) | **GET** /teams | Get teams of user

Expand All @@ -111,11 +112,16 @@ Class | Method | HTTP request | Description
- [CreateLink500Response](docs/CreateLink500Response.md)
- [CreateLinkRequest](docs/CreateLinkRequest.md)
- [CreateLinkRequestMetatag](docs/CreateLinkRequestMetatag.md)
- [CreateLinkRequestQrcode](docs/CreateLinkRequestQrcode.md)
- [CreateQrCodeRequest](docs/CreateQrCodeRequest.md)
- [CreateQrCodeRequestOneOf](docs/CreateQrCodeRequestOneOf.md)
- [CreateQrCodeRequestOneOf1](docs/CreateQrCodeRequestOneOf1.md)
- [GetFolders200Response](docs/GetFolders200Response.md)
- [GetFolders200ResponseFoldersInner](docs/GetFolders200ResponseFoldersInner.md)
- [GetLink200Response](docs/GetLink200Response.md)
- [GetLink200ResponseGeolinksInner](docs/GetLink200ResponseGeolinksInner.md)
- [GetLink200ResponseMetatag](docs/GetLink200ResponseMetatag.md)
- [GetLink200ResponseQrcode](docs/GetLink200ResponseQrcode.md)
- [GetLink401Response](docs/GetLink401Response.md)
- [GetLink404Response](docs/GetLink404Response.md)
- [GetLink422Response](docs/GetLink422Response.md)
Expand Down
1 change: 1 addition & 0 deletions docs/CreateLinkRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**code** | **str** | Custom short code | [optional]
**label** | **str** | Label | [optional]
**password** | **str** | Password | [optional]
**qrcode** | [**CreateLinkRequestQrcode**](CreateLinkRequestQrcode.md) | | [optional]
**metatag** | [**CreateLinkRequestMetatag**](CreateLinkRequestMetatag.md) | | [optional]
**expired_at** | **datetime** | Expiration date | [optional]

Expand Down
34 changes: 34 additions & 0 deletions docs/CreateLinkRequestQrcode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# CreateLinkRequestQrcode

QR Code

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**size** | **int** | The size of the QR code (px) | [optional] [default to 600]
**format** | **str** | The format of the QR code | [optional] [default to 'png']
**margin** | **int** | The margin around the QR code (px) | [optional] [default to 0]
**background_color** | **str** | The background color of the QR code (hexadecimal) | [optional] [default to '#ffffff']
**foreground_color** | **str** | The foreground color of the QR code (hexadecimal) | [optional] [default to '#000000']

## Example

```python
from urlr.models.create_link_request_qrcode import CreateLinkRequestQrcode

# TODO update the JSON string below
json = "{}"
# create an instance of CreateLinkRequestQrcode from a JSON string
create_link_request_qrcode_instance = CreateLinkRequestQrcode.from_json(json)
# print the JSON string representation of the object
print(CreateLinkRequestQrcode.to_json())

# convert the object into a dict
create_link_request_qrcode_dict = create_link_request_qrcode_instance.to_dict()
# create an instance of CreateLinkRequestQrcode from a dict
create_link_request_qrcode_from_dict = CreateLinkRequestQrcode.from_dict(create_link_request_qrcode_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


36 changes: 36 additions & 0 deletions docs/CreateQrCodeRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# CreateQrCodeRequest


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**size** | **int** | The size of the QR code (px) | [optional] [default to 600]
**format** | **str** | The format of the QR code | [optional] [default to 'png']
**margin** | **int** | The margin around the QR code (px) | [optional] [default to 0]
**background_color** | **str** | The background color of the QR code (hexadecimal) | [optional] [default to '#ffffff']
**foreground_color** | **str** | The foreground color of the QR code (hexadecimal) | [optional] [default to '#000000']
**url** | **str** | URL of the QR Code |
**team_id** | **str** | Team API ID |
**link_id** | **str** | Link API ID of the QR Code |

## Example

```python
from urlr.models.create_qr_code_request import CreateQrCodeRequest

# TODO update the JSON string below
json = "{}"
# create an instance of CreateQrCodeRequest from a JSON string
create_qr_code_request_instance = CreateQrCodeRequest.from_json(json)
# print the JSON string representation of the object
print(CreateQrCodeRequest.to_json())

# convert the object into a dict
create_qr_code_request_dict = create_qr_code_request_instance.to_dict()
# create an instance of CreateQrCodeRequest from a dict
create_qr_code_request_from_dict = CreateQrCodeRequest.from_dict(create_qr_code_request_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


30 changes: 30 additions & 0 deletions docs/CreateQrCodeRequestOneOf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# CreateQrCodeRequestOneOf


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**url** | **str** | URL of the QR Code |
**team_id** | **str** | Team API ID |

## Example

```python
from urlr.models.create_qr_code_request_one_of import CreateQrCodeRequestOneOf

# TODO update the JSON string below
json = "{}"
# create an instance of CreateQrCodeRequestOneOf from a JSON string
create_qr_code_request_one_of_instance = CreateQrCodeRequestOneOf.from_json(json)
# print the JSON string representation of the object
print(CreateQrCodeRequestOneOf.to_json())

# convert the object into a dict
create_qr_code_request_one_of_dict = create_qr_code_request_one_of_instance.to_dict()
# create an instance of CreateQrCodeRequestOneOf from a dict
create_qr_code_request_one_of_from_dict = CreateQrCodeRequestOneOf.from_dict(create_qr_code_request_one_of_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


29 changes: 29 additions & 0 deletions docs/CreateQrCodeRequestOneOf1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# CreateQrCodeRequestOneOf1


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**link_id** | **str** | Link API ID of the QR Code |

## Example

```python
from urlr.models.create_qr_code_request_one_of1 import CreateQrCodeRequestOneOf1

# TODO update the JSON string below
json = "{}"
# create an instance of CreateQrCodeRequestOneOf1 from a JSON string
create_qr_code_request_one_of1_instance = CreateQrCodeRequestOneOf1.from_json(json)
# print the JSON string representation of the object
print(CreateQrCodeRequestOneOf1.to_json())

# convert the object into a dict
create_qr_code_request_one_of1_dict = create_qr_code_request_one_of1_instance.to_dict()
# create an instance of CreateQrCodeRequestOneOf1 from a dict
create_qr_code_request_one_of1_from_dict = CreateQrCodeRequestOneOf1.from_dict(create_qr_code_request_one_of1_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions docs/GetLink200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**domain** | **str** | Domain | [optional]
**code** | **str** | Short code | [optional]
**label** | **str** | Label | [optional]
**qrcode** | [**GetLink200ResponseQrcode**](GetLink200ResponseQrcode.md) | | [optional]
**metatag** | [**GetLink200ResponseMetatag**](GetLink200ResponseMetatag.md) | | [optional]
**geolinks** | [**List[GetLink200ResponseGeolinksInner]**](GetLink200ResponseGeolinksInner.md) | Geographical targeting links | [optional]
**created_at** | **datetime** | Creation date | [optional]
Expand Down
30 changes: 30 additions & 0 deletions docs/GetLink200ResponseQrcode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# GetLink200ResponseQrcode

QR Code associated to the short link

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | **str** | QR Code Data URL | [optional]

## Example

```python
from urlr.models.get_link200_response_qrcode import GetLink200ResponseQrcode

# TODO update the JSON string below
json = "{}"
# create an instance of GetLink200ResponseQrcode from a JSON string
get_link200_response_qrcode_instance = GetLink200ResponseQrcode.from_json(json)
# print the JSON string representation of the object
print(GetLink200ResponseQrcode.to_json())

# convert the object into a dict
get_link200_response_qrcode_dict = get_link200_response_qrcode_instance.to_dict()
# create an instance of GetLink200ResponseQrcode from a dict
get_link200_response_qrcode_from_dict = GetLink200ResponseQrcode.from_dict(get_link200_response_qrcode_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


89 changes: 89 additions & 0 deletions docs/QRCodesApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# urlr.QRCodesApi

All URIs are relative to *https://urlr.me/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_qr_code**](QRCodesApi.md#create_qr_code) | **POST** /qrcodes/create | Create a QR Code


# **create_qr_code**
> bytearray create_qr_code(create_qr_code_request=create_qr_code_request)
Create a QR Code

### Example

* Bearer (JWT) Authentication (bearerAuth):

```python
import urlr
from urlr.models.create_qr_code_request import CreateQrCodeRequest
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.QRCodesApi(api_client)
create_qr_code_request = urlr.CreateQrCodeRequest() # CreateQrCodeRequest | Info of the QR Code to create (optional)

try:
# Create a QR Code
api_response = api_instance.create_qr_code(create_qr_code_request=create_qr_code_request)
print("The response of QRCodesApi->create_qr_code:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling QRCodesApi->create_qr_code: %s\n" % e)
```



### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**create_qr_code_request** | [**CreateQrCodeRequest**](CreateQrCodeRequest.md)| Info of the QR Code to create | [optional]

### Return type

**bytearray**

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: image/png, image/webp, image/svg+xml, application/problem+json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**201** | QR Code | - |
**401** | Unauthorized | - |
**422** | Validation Failed | - |
**429** | Limits Exceeded | - |
**500** | Internal 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)

Loading

0 comments on commit 3313458

Please sign in to comment.