pyznuny 0.0.6__tar.gz → 0.0.7__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: pyznuny
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: A Python client for interacting with the Znuny ticketing system API.
5
5
  Author-email: Junior Rosa <jr.dasrosas@gmail.com>, Pablo Gascon <pablogasconiel445@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/Junior-Rosa/py-znuny
@@ -77,27 +77,21 @@ PASSWORD=your-password
77
77
  ### Create a ticket
78
78
 
79
79
  ```python
80
- from pyznuny.ticket.models import (
81
- TicketCreateArticle,
82
- TicketCreatePayload,
83
- TicketCreateTicket,
84
- )
85
-
86
- payload = TicketCreatePayload(
87
- Ticket=TicketCreateTicket(
88
- Title="Ticket Title",
89
- Queue="Ticket queue",
90
- State="Ticket state",
91
- Priority="Ticket priority",
92
- CustomerUser="customer@example.com",
93
- ),
94
- Article=TicketCreateArticle(
95
- Subject="Ticket subject",
96
- Body="Ticket body...",
97
- ContentType="text/plain; charset=utf-8",
98
- From_="customer@example.com",
99
- ),
100
- )
80
+ payload = {
81
+ "Ticket": {
82
+ "Title": "Ticket Title",
83
+ "Queue": "Ticket queue",
84
+ "State": "Ticket state",
85
+ "Priority": "Ticket priority",
86
+ "CustomerUser": "customer@example.com",
87
+ },
88
+ "Article": {
89
+ "Subject": "Ticket subject",
90
+ "Body": "Ticket body...",
91
+ "ContentType": "text/plain; charset=utf-8",
92
+ "From": "customer@example.com",
93
+ },
94
+ }
101
95
 
102
96
  response = client.ticket.create(payload=payload)
103
97
  print(response.json())
@@ -137,6 +131,8 @@ response = client.ticket.get(ticket_id=1234)
137
131
  - When `username` and `password` are provided, the client logs in and stores
138
132
  `session_id` automatically.
139
133
  - You can pass a pre-configured `httpx.Client` via `client=...` if needed.
134
+ - You can send payloads as plain dicts using the same attributes shown in the
135
+ examples.
140
136
 
141
137
  ## License
142
138
 
@@ -51,27 +51,21 @@ PASSWORD=your-password
51
51
  ### Create a ticket
52
52
 
53
53
  ```python
54
- from pyznuny.ticket.models import (
55
- TicketCreateArticle,
56
- TicketCreatePayload,
57
- TicketCreateTicket,
58
- )
59
-
60
- payload = TicketCreatePayload(
61
- Ticket=TicketCreateTicket(
62
- Title="Ticket Title",
63
- Queue="Ticket queue",
64
- State="Ticket state",
65
- Priority="Ticket priority",
66
- CustomerUser="customer@example.com",
67
- ),
68
- Article=TicketCreateArticle(
69
- Subject="Ticket subject",
70
- Body="Ticket body...",
71
- ContentType="text/plain; charset=utf-8",
72
- From_="customer@example.com",
73
- ),
74
- )
54
+ payload = {
55
+ "Ticket": {
56
+ "Title": "Ticket Title",
57
+ "Queue": "Ticket queue",
58
+ "State": "Ticket state",
59
+ "Priority": "Ticket priority",
60
+ "CustomerUser": "customer@example.com",
61
+ },
62
+ "Article": {
63
+ "Subject": "Ticket subject",
64
+ "Body": "Ticket body...",
65
+ "ContentType": "text/plain; charset=utf-8",
66
+ "From": "customer@example.com",
67
+ },
68
+ }
75
69
 
76
70
  response = client.ticket.create(payload=payload)
77
71
  print(response.json())
@@ -111,6 +105,8 @@ response = client.ticket.get(ticket_id=1234)
111
105
  - When `username` and `password` are provided, the client logs in and stores
112
106
  `session_id` automatically.
113
107
  - You can pass a pre-configured `httpx.Client` via `client=...` if needed.
108
+ - You can send payloads as plain dicts using the same attributes shown in the
109
+ examples.
114
110
 
115
111
  ## License
116
112
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyznuny"
3
- version = "0.0.6"
3
+ version = "0.0.7"
4
4
  description = "A Python client for interacting with the Znuny ticketing system API."
5
5
  authors = [
6
6
  { name = "Junior Rosa", email = "jr.dasrosas@gmail.com" },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyznuny
3
- Version: 0.0.6
3
+ Version: 0.0.7
4
4
  Summary: A Python client for interacting with the Znuny ticketing system API.
5
5
  Author-email: Junior Rosa <jr.dasrosas@gmail.com>, Pablo Gascon <pablogasconiel445@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/Junior-Rosa/py-znuny
@@ -77,27 +77,21 @@ PASSWORD=your-password
77
77
  ### Create a ticket
78
78
 
79
79
  ```python
80
- from pyznuny.ticket.models import (
81
- TicketCreateArticle,
82
- TicketCreatePayload,
83
- TicketCreateTicket,
84
- )
85
-
86
- payload = TicketCreatePayload(
87
- Ticket=TicketCreateTicket(
88
- Title="Ticket Title",
89
- Queue="Ticket queue",
90
- State="Ticket state",
91
- Priority="Ticket priority",
92
- CustomerUser="customer@example.com",
93
- ),
94
- Article=TicketCreateArticle(
95
- Subject="Ticket subject",
96
- Body="Ticket body...",
97
- ContentType="text/plain; charset=utf-8",
98
- From_="customer@example.com",
99
- ),
100
- )
80
+ payload = {
81
+ "Ticket": {
82
+ "Title": "Ticket Title",
83
+ "Queue": "Ticket queue",
84
+ "State": "Ticket state",
85
+ "Priority": "Ticket priority",
86
+ "CustomerUser": "customer@example.com",
87
+ },
88
+ "Article": {
89
+ "Subject": "Ticket subject",
90
+ "Body": "Ticket body...",
91
+ "ContentType": "text/plain; charset=utf-8",
92
+ "From": "customer@example.com",
93
+ },
94
+ }
101
95
 
102
96
  response = client.ticket.create(payload=payload)
103
97
  print(response.json())
@@ -137,6 +131,8 @@ response = client.ticket.get(ticket_id=1234)
137
131
  - When `username` and `password` are provided, the client logs in and stores
138
132
  `session_id` automatically.
139
133
  - You can pass a pre-configured `httpx.Client` via `client=...` if needed.
134
+ - You can send payloads as plain dicts using the same attributes shown in the
135
+ examples.
140
136
 
141
137
  ## License
142
138
 
File without changes
File without changes
File without changes
File without changes