Skip to content

Commit 3f62f96

Browse files
committed
1 parent 3fb752c commit 3f62f96

7 files changed

Lines changed: 17 additions & 36 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [3.0.2] - 2026-05-14
4+
5+
- Fix example of getting started readme section
6+
37
## [3.0.1] - 2026-05-14
48

59
- Fix examples and add changelog entry for 3.0.0

README.md

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# urlr@3.0.1
1+
# urlr@3.0.2
22

33
![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)
44

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

77
- API version: 2.0.0
8-
- Package version: 3.0.1
8+
- Package version: 3.0.2
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010

1111
For more information, please visit [https://urlr.me/en](https://urlr.me/en)
@@ -52,48 +52,25 @@ Please follow the [installation procedure](#installation--usage) and then run th
5252
```python
5353
import os
5454
import urlr
55-
from urlr.rest import ApiException
5655

57-
username = os.getenv("URLR_API_USERNAME") # to be defined on your side
58-
password = os.getenv("URLR_API_PASSWORD") # to be defined on your side
59-
60-
61-
# Access Tokens
56+
api_key = os.getenv("URLR_API_KEY") # to be defined on your side
6257

6358
configuration = urlr.Configuration()
64-
65-
with urlr.ApiClient(configuration) as api_client:
66-
access_token_api = urlr.AccessTokensApi(api_client)
67-
68-
create_access_token_request = urlr.CreateAccessTokenRequest(
69-
username=username,
70-
password=password,
71-
)
72-
73-
try:
74-
api_response = access_token_api.create_access_token(
75-
create_access_token_request=create_access_token_request)
76-
except ApiException as e:
77-
print("Exception when calling AccessTokensApi->create_access_token: %s\n" % e)
78-
quit()
79-
80-
configuration.access_token = api_response.token
59+
configuration.api_key['ApiKeyAuth'] = api_key
8160

8261
# Create a link
8362

8463
with urlr.ApiClient(configuration) as api_client:
8564
links_api = urlr.LinksApi(api_client)
86-
create_link_request = urlr.CreateLinkRequest(
65+
link_create_request = urlr.LinkCreateRequest(
8766
url="",
88-
team_id=""
67+
workspace_id=""
8968
)
9069

9170
try:
92-
link = links_api.create_link(
93-
create_link_request=create_link_request)
71+
link = links_api.link_create(link_create_request=link_create_request)
9472
except Exception as e:
95-
print("Exception when calling LinksApi->create_link: %s\n" % e)
96-
73+
print("Exception when calling LinksApi->link_create: %s\n" % e)
9774
```
9875

9976
Complete examples can be found in the [docs](https://github.com/URLR/urlr-python/tree/main/docs) directory of the client repository.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "urlr"
3-
version = "3.0.1"
3+
version = "3.0.2"
44
description = "Python client for URLR"
55
authors = [
66
{name = "URLR",email = "contact@urlr.me"},

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# prerequisite: setuptools
2121
# http://pypi.python.org/pypi/setuptools
2222
NAME = "urlr"
23-
VERSION = "3.0.1"
23+
VERSION = "3.0.2"
2424
PYTHON_REQUIRES = ">= 3.10"
2525
REQUIRES = [
2626
"urllib3 >= 2.1.0, < 3.0.0",

urlr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "3.0.1"
18+
__version__ = "3.0.2"
1919

2020
# Define package exports
2121
__all__ = [

urlr/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(
9292
self.default_headers[header_name] = header_value
9393
self.cookie = cookie
9494
# Set default User-Agent.
95-
self.user_agent = 'OpenAPI-Generator/3.0.1/python'
95+
self.user_agent = 'OpenAPI-Generator/3.0.2/python'
9696
self.client_side_validation = configuration.client_side_validation
9797

9898
def __enter__(self):

urlr/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def to_debug_report(self) -> str:
555555
"OS: {env}\n"\
556556
"Python Version: {pyversion}\n"\
557557
"Version of the API: 2.0.0\n"\
558-
"SDK Package Version: 3.0.1".\
558+
"SDK Package Version: 3.0.2".\
559559
format(env=sys.platform, pyversion=sys.version)
560560

561561
def get_host_settings(self) -> List[HostSetting]:

0 commit comments

Comments
 (0)