Skip to content

Commit f65f2b6

Browse files
author
Mack
committed
chore: bump version to 2.2.0 + API version to 2026-03-30
1 parent 8ef0c7d commit f65f2b6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

method/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __init__(self, config: Configuration):
147147
'Authorization': 'Bearer {token}'.format(token=config.api_key),
148148
'Content-Type': 'application/json',
149149
'User-Agent': 'Method-Python/v{version}'.format(version=version('method-python')),
150-
'method-version': '2025-07-04'
150+
'method-version': '2026-03-30'
151151
})
152152

153153
def _make_request(self, method: str, path: Optional[str] = None, data: Optional[Dict] = None, params: Optional[Dict] = None, headers: Optional[Dict] = None, raw: bool = False, download: bool = False) -> Union[MethodResponse[T], str]:

method/resources/Webhook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def list(self) -> MethodResponse[List[Webhook]]:
112112
return super(WebhookResource, self)._list(None)
113113

114114
def create(self, opts: WebhookCreateOpts, request_opts: Optional[RequestOpts] = None) -> MethodResponse[Webhook]:
115-
return super(WebhookResource, self)._create(opts, request_opts)
115+
return super(WebhookResource, self)._create(opts, request_opts=request_opts)
116116

117117
def update(self, _id: str, opts: WebhookUpdateOpts) -> MethodResponse[Webhook]:
118118
return super(WebhookResource, self)._patch_with_id(_id, opts)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='method-python',
5-
version='2.1.1',
5+
version='2.2.0',
66
description='Python library for the Method API',
77
long_description='Python library for the Method API',
88
long_description_content_type='text/x-rst',

0 commit comments

Comments
 (0)