teler 0.2.0__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: teler
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: A helper library for FreJun Teler
5
5
  Author-email: FreJun <robin@frejun.com>
6
6
  License: MIT License
@@ -196,7 +196,7 @@ async def webhook_receiver(data: Annotated[dict, Body()]):
196
196
  logger.info(f"--------Webhook Payload-------- {data}")
197
197
  return JSONResponse(content="Webhook received.")
198
198
 
199
- @router.get("/initiate-call", status_code=status.HTTP_200_OK)
199
+ @router.post("/initiate-call", status_code=status.HTTP_200_OK)
200
200
  async def initiate_call():
201
201
  """
202
202
  Initiate a call using Teler SDK.
@@ -158,7 +158,7 @@ async def webhook_receiver(data: Annotated[dict, Body()]):
158
158
  logger.info(f"--------Webhook Payload-------- {data}")
159
159
  return JSONResponse(content="Webhook received.")
160
160
 
161
- @router.get("/initiate-call", status_code=status.HTTP_200_OK)
161
+ @router.post("/initiate-call", status_code=status.HTTP_200_OK)
162
162
  async def initiate_call():
163
163
  """
164
164
  Initiate a call using Teler SDK.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "teler"
7
- version = "0.2.0"
7
+ version = "0.2.2"
8
8
  description = "A helper library for FreJun Teler"
9
9
  readme = "README.md"
10
10
  license = { file = "LICENSE" }
@@ -15,7 +15,7 @@ class CallFlow:
15
15
  """
16
16
  return {
17
17
  "action": "dial",
18
- "from_numebr": from_number,
18
+ "from_number": from_number,
19
19
  "to_number": to_number,
20
20
  "status_callback_url": status_callback_url,
21
21
  "record": record,
@@ -6,7 +6,7 @@ from teler.resources.base import (AsyncBaseResourceManager, BaseResource,
6
6
  BaseResourceManager)
7
7
 
8
8
  PATHS: Dict[str, str] = {
9
- "create": "/calls/initiate"
9
+ "create": "/voice/calls/initiate"
10
10
  }
11
11
 
12
12
  @dataclass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: teler
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: A helper library for FreJun Teler
5
5
  Author-email: FreJun <robin@frejun.com>
6
6
  License: MIT License
@@ -196,7 +196,7 @@ async def webhook_receiver(data: Annotated[dict, Body()]):
196
196
  logger.info(f"--------Webhook Payload-------- {data}")
197
197
  return JSONResponse(content="Webhook received.")
198
198
 
199
- @router.get("/initiate-call", status_code=status.HTTP_200_OK)
199
+ @router.post("/initiate-call", status_code=status.HTTP_200_OK)
200
200
  async def initiate_call():
201
201
  """
202
202
  Initiate a call using Teler SDK.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes