issue_centre 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/issue_centre.gemspec +2 -0
- data/lib/issue_centre/auth_connection.rb +2 -2
- data/lib/issue_centre/customer_connection.rb +1 -1
- data/lib/issue_centre/generic_connection.rb +1 -3
- data/lib/issue_centre/ticket_connection.rb +4 -4
- data/lib/issue_centre/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 830a7056a3b03c3608b9c40c60957ef57e8096dc
|
4
|
+
data.tar.gz: cf976d1a5b762e6caceeb00526ece11488323e3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf512818f61e3fbb6489e18dc03741232f50e609fc905d326a1ce35549f2b9499ce2ebeeeae10ba3579ddb97397d5cec753c80c283eb0f25aa9e1f47f586f717
|
7
|
+
data.tar.gz: 19333ce58d952ca2c8703fc9b5030c297b69ca130fec74742d85772c02fbfe95132e8f7608e55185c63f869cb7539b687aeb817a580335c5f75e18c5752a159e
|
data/README.md
CHANGED
@@ -63,6 +63,10 @@ open_tickets = ticket_conn.get_open_tickets( session_key, companies.first[:id],
|
|
63
63
|
# Grab a list of closed tickets for the specified company
|
64
64
|
closed_tickets = ticket_conn.get_closed_tickets( session_key, companies.first[:id], 100, 1)
|
65
65
|
|
66
|
+
# Grab a list of events for the specified ticket
|
67
|
+
events = ticket_conn.get_events_for_ticket( session_key, closed_tickets.last[:id])
|
68
|
+
|
69
|
+
|
66
70
|
```
|
67
71
|
|
68
72
|
## Contributing
|
data/issue_centre.gemspec
CHANGED
@@ -4,9 +4,9 @@ module IssueCentre
|
|
4
4
|
# Connection client for authenticating and retrieving contracts
|
5
5
|
# from IssueCentre
|
6
6
|
#
|
7
|
-
# @param [String]
|
7
|
+
# @param auth_url [String] IssueCentre endpoint url
|
8
8
|
# (e.g. {https://support.callclosed.net/issuecentre/Connection})
|
9
|
-
# @param [Hash]
|
9
|
+
# @param options [Hash] Other options to pass to the constructors
|
10
10
|
#
|
11
11
|
# @return [AuthConnection] Instance of AuthConnection client
|
12
12
|
#
|
@@ -4,7 +4,7 @@ module IssueCentre
|
|
4
4
|
# Connection client for authenticating and retrieving customer
|
5
5
|
# information from IssueCentre
|
6
6
|
#
|
7
|
-
# @param [String]
|
7
|
+
# @param [String] customer_url IssueCentre endpoint url
|
8
8
|
# (e.g. {https://support.callclosed.net/issuecentre/Customer})
|
9
9
|
# @param [String] session_key SessionKey for this session
|
10
10
|
# @param [Hash] options Other options to pass to the constructors
|
@@ -5,10 +5,8 @@ module IssueCentre
|
|
5
5
|
# @see AuthConnection
|
6
6
|
# @see CustomerConnection
|
7
7
|
#
|
8
|
-
# @param [String]
|
8
|
+
# @param [String] base_url IssueCentre endpoint url
|
9
9
|
# (e.g. {https://support.callclosed.net/issuecentre/Connection})
|
10
|
-
# @param [String] username A valid IssueCentre username
|
11
|
-
# @param [String] password A valid IssueCentre password
|
12
10
|
# @param [Hash] options Other options to pass to the constructors
|
13
11
|
#
|
14
12
|
# @return [Connection] instance of Connection
|
@@ -4,7 +4,7 @@ module IssueCentre
|
|
4
4
|
# Connection client for authenticating and retrieving ticket
|
5
5
|
# information from IssueCentre
|
6
6
|
#
|
7
|
-
# @param [String]
|
7
|
+
# @param [String] customer_url IssueCentre endpoint url (e.g.
|
8
8
|
# {https://support.callclosed.net/issuecentre/Customer})
|
9
9
|
#
|
10
10
|
# @param [String] session_key SessionKey for this session
|
@@ -46,7 +46,7 @@ module IssueCentre
|
|
46
46
|
|
47
47
|
# Return (closed) tickets from IssueCentre for this contract
|
48
48
|
#
|
49
|
-
# @param [SessionKey]
|
49
|
+
# @param [SessionKey] session_key SessionKey object
|
50
50
|
#
|
51
51
|
# @param [Integer] company_id A Company ID for the function to
|
52
52
|
# return closed tickets for. Zero returns a list of all closed
|
@@ -71,9 +71,9 @@ module IssueCentre
|
|
71
71
|
|
72
72
|
# Return all events from IssueCentre for this ticket
|
73
73
|
#
|
74
|
-
# @param [String]
|
74
|
+
# @param [String] session_key SessionKey object
|
75
75
|
#
|
76
|
-
# @param [Integer]
|
76
|
+
# @param [Integer] ticket_id Ticket ID for the required ticket
|
77
77
|
#
|
78
78
|
# @return [Array] An array of events and details as hashes
|
79
79
|
#
|
data/lib/issue_centre/version.rb
CHANGED