Commit Graph

46 Commits

Author SHA1 Message Date
Steven Polley
28b6efc18c Fix user impersonation requests 2018-07-27 13:29:31 -06:00
0b898af164 NewSiteUserImpersonation is now able to retrieve hash 2018-07-26 22:31:47 -06:00
b90025c6bd Merge branch 'master' of deadbeef.codes:steven/go-cw 2018-07-26 21:30:38 -06:00
9e107cb487 add user impersonation via username and password. 2018-07-26 21:30:23 -06:00
Steven Polley
7c1534265b Update comment on paginationrequests 2018-07-26 16:52:34 -06:00
0eca613e65 -Add GetSources()
-Add TicketTimeEntryCount(ticketID int)
-Add source struct for JSON unmarshalling
2018-07-11 16:04:39 -06:00
d62f57b470 Add GetCompanyStatuses
Add GetBoardStatuses
2018-07-10 10:46:10 -06:00
b4d146e6e2 Add Patch
Add AssignTicketToTeam
2018-07-09 20:48:02 -06:00
8909e6f25e Added ServiceTeam
Added BoardTeam
Added Board
2018-07-09 19:25:08 -06:00
03728eda85 Add correct types to schedule entry struct 2018-07-08 22:11:56 -06:00
a403fa2e58 testing schedule entry condition filtering 2018-07-08 19:07:39 -06:00
0b9d1cacb2 Add GetSystemMembers
Begin work on schedule API
2018-07-08 18:02:29 -06:00
b538596d9c NewRequest is now a method of a connectwise.Site 2018-07-08 15:16:59 -06:00
993c7ee254 Document Count method
Fix Request parameters for CW filtering.
2018-07-08 11:21:07 -06:00
99bf114c75 Fix GetCompanyByName
Change how request parameters are set
2018-07-08 09:50:05 -06:00
7e94afac9c Add CompanyCount method and Count struct to hold return data 2018-07-08 00:59:32 -06:00
d2ec87e7ca Add GetAgreementByID 2018-07-07 19:10:43 -06:00
0c7791e267 Complete refactor of request system... much more flexible requests. 2018-07-07 17:18:59 -06:00
9eabee18ff -Fix ConnectWise parameters map
-Added error checkign in GetCompanyByName if no companies returned by CW
2018-07-07 16:31:45 -06:00
c6b82d473c Update company.go to use new request feature. 2018-07-06 19:40:12 -06:00
8c79fef71a Rename connectwise.ConnectwiseSite to connectwise.Site 2018-07-06 18:29:53 -06:00
d87b8ff4ba -Added to documentation
-Moved logic of http request to the Do() method in request.go
-
2018-07-06 18:26:11 -06:00
d14f0583ee Begin work on generic request method.
Will probably absorb http client functions into this when done.
2018-07-06 16:21:00 -06:00
f13537fc8c Fix error formatting - what was I doing?!?! 2018-07-06 08:37:53 -06:00
9cef8aeaa2 Breaking - Implement proper error handling. Everything passes errors up 2018-07-05 21:20:52 -06:00
f2e6e33a53 Fix URL in system.go 2018-07-05 19:57:24 -06:00
8d6312bff5 Add GetAgreementsByCompanyName 2018-06-30 11:15:52 -06:00
4616997d47 Merge 2018-06-28 19:38:22 -06:00
e88572ea4c Various formatting, documentation and style changes. 2018-06-28 19:35:34 -06:00
ab8a24800f Added ConfigurationReference struct and GetTicketConfigurationsByID(ticketID) receiver 2018-06-26 10:03:11 -06:00
b35fcbbbb0 TIL about struct tagging using string literals... I thought those were just weird fancy comments. 2018-06-26 09:03:36 -06:00
3258707dce Custom fields should be a slice of structs in time.go 2018-06-25 12:54:10 -06:00
5de7832341 Add custom fields to TimeEntry struct 2018-06-22 23:39:02 -06:00
4e8a357551 Adding time.go - not ready yet 2018-06-22 23:35:42 -06:00
f446b9c5a8 Adding time.go - not ready yet 2018-06-22 23:31:09 -06:00
3a78d5428a Restructure - using pointer receivers instead of passing *ConnectwiseSite to every single function 2018-06-22 21:14:08 -06:00
ed6df77eb5 Remove net/url from includes where it's not required...whoops 2018-06-22 18:48:54 -06:00
4eaca267d9 Create generic BuildUrl function to reduce the need to go through all the net/url crap each time 2018-06-22 18:47:39 -06:00
a66ba7ca89 Updated file layout to match CW API documentation 2018-06-22 14:16:26 -06:00
a1635ed170 Began work on webhooks/callback support. Added additional request types. TBD: refactor requests into a generic request type and instead pass whether it is a GET, POST, UPDATE, DELETE, etc request 2018-06-20 15:59:12 -06:00
480d28baa0 Add GetTicketByID method 2018-06-20 14:24:50 -06:00
4e97924700 Created method for generic GET request to CW API to handle all the HTTP garbage. Updated methods to use new GetRequest method. 2018-06-20 14:23:49 -06:00
3c8e0a424f Moved getHTTPResponseBody to requests.go what am i doing lol 2018-06-20 13:24:47 -06:00
c998cd19a7 Add getHTTPResponseBody method, add GetCompanyByID method. Created Company type and changed Companies type to be a slice of Company stucts 2018-06-20 13:19:36 -06:00
c21dc9c2cb Added ConnectwiseSite struct and method, added GetCompaniesByName method 2018-06-20 10:55:53 -06:00
0c9c05c62d Add struct for companies 2018-06-20 09:47:40 -06:00