Commit Graph

59 Commits

Author SHA1 Message Date
1a8fa52767 Added SetTicketStatus to allow updating of ticket status by ID 2018-09-22 15:07:34 -06:00
e301c1feeb Excessive prints... Printscess? 2018-08-25 18:19:26 -06:00
460b0a8aa6 If we get an unexpected HTTP status code, print the body in error 2018-08-25 18:17:59 -06:00
a12e38597f Add PostTimeEntry 2018-08-25 18:17:29 -06:00
c341f047a5 add getTicketNotes - Lots of dates are now strings 2018-08-23 19:34:39 -06:00
386a7d75ca Added GetTimeEntriesByMember 2018-08-22 22:02:22 -06:00
55443ad4ef Set Site.CompanyName even if not doing user impersonation 2018-08-13 22:58:21 -06:00
8ccc2ad170 Update comment on custom field 2018-08-05 17:00:58 -06:00
Steven Polley
04e889c444 Better comments in requests.go to explain user impersonation 2018-08-03 15:00:17 -06:00
Steven Polley
b6d96444b5 Add bool to custom field - this isn't good long term? 2018-07-30 12:44:35 -06:00
5acbb39d8f Change Patch to PatchString 2018-07-29 12:22:08 -06:00
bf30760baf Remove redundant http status code in error 2018-07-28 09:58:04 -06:00
101d8061b3 Added GetCompanyTeamMembers 2018-07-27 18:53:28 -06:00
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