Commit Graph

92 Commits

Author SHA1 Message Date
Steven Polley 0b9d1cacb2 Add GetSystemMembers
Begin work on schedule API
2018-07-08 18:02:29 -06:00
Steven Polley b538596d9c NewRequest is now a method of a connectwise.Site 2018-07-08 15:16:59 -06:00
Steven Polley 993c7ee254 Document Count method
Fix Request parameters for CW filtering.
2018-07-08 11:21:07 -06:00
Steven Polley 99bf114c75 Fix GetCompanyByName
Change how request parameters are set
2018-07-08 09:50:05 -06:00
Steven Polley 7e94afac9c Add CompanyCount method and Count struct to hold return data 2018-07-08 00:59:32 -06:00
Steven Polley d2ec87e7ca Add GetAgreementByID 2018-07-07 19:10:43 -06:00
Steven Polley 0c7791e267 Complete refactor of request system... much more flexible requests. 2018-07-07 17:18:59 -06:00
Steven Polley 9eabee18ff -Fix ConnectWise parameters map
-Added error checkign in GetCompanyByName if no companies returned by CW
2018-07-07 16:31:45 -06:00
Steven Polley c6b82d473c Update company.go to use new request feature. 2018-07-06 19:40:12 -06:00
Steven Polley 8c79fef71a Rename connectwise.ConnectwiseSite to connectwise.Site 2018-07-06 18:29:53 -06:00
Steven Polley d87b8ff4ba -Added to documentation
-Moved logic of http request to the Do() method in request.go
-
2018-07-06 18:26:11 -06:00
Steven Polley 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
Steven Polley b5ce1c3243 Fix README.md 2018-07-06 12:57:51 -06:00
Steven Polley f13537fc8c Fix error formatting - what was I doing?!?! 2018-07-06 08:37:53 -06:00
Steven Polley ae4c27d491 Update README.md to reflect new error handling 2018-07-05 22:47:03 -06:00
Steven Polley 9cef8aeaa2 Breaking - Implement proper error handling. Everything passes errors up 2018-07-05 21:20:52 -06:00
Steven Polley f2e6e33a53 Fix URL in system.go 2018-07-05 19:57:24 -06:00
Steven Polley 1576a16d65 Update README.MD - import paths 2018-07-02 16:17:26 -06:00
Steven Polley 8d6312bff5 Add GetAgreementsByCompanyName 2018-06-30 11:15:52 -06:00
Steven Polley 4616997d47 Merge 2018-06-28 19:38:22 -06:00
Steven Polley e88572ea4c Various formatting, documentation and style changes. 2018-06-28 19:35:34 -06:00
Steven Polley ab8a24800f Added ConfigurationReference struct and GetTicketConfigurationsByID(ticketID) receiver 2018-06-26 10:03:11 -06:00
Steven Polley b35fcbbbb0 TIL about struct tagging using string literals... I thought those were just weird fancy comments. 2018-06-26 09:03:36 -06:00
Steven Polley 3258707dce Custom fields should be a slice of structs in time.go 2018-06-25 12:54:10 -06:00
Steven Polley bcca1e872e Fix example usage since change to using pointer receivers instead of passing ConnectwiseSite pointer to each function 2018-06-22 23:47:25 -06:00
Steven Polley 5de7832341 Add custom fields to TimeEntry struct 2018-06-22 23:39:02 -06:00
Steven Polley 4e8a357551 Adding time.go - not ready yet 2018-06-22 23:35:42 -06:00
Steven Polley f446b9c5a8 Adding time.go - not ready yet 2018-06-22 23:31:09 -06:00
Steven Polley 3a78d5428a Restructure - using pointer receivers instead of passing *ConnectwiseSite to every single function 2018-06-22 21:14:08 -06:00
Steven Polley ed6df77eb5 Remove net/url from includes where it's not required...whoops 2018-06-22 18:48:54 -06:00
Steven Polley 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
Steven Polley a66ba7ca89 Updated file layout to match CW API documentation 2018-06-22 14:16:26 -06:00
Steven Polley 8adc3a69a1 Updated README.md 2018-06-20 17:56:50 -06:00
Steven Polley 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
Steven Polley 480d28baa0 Add GetTicketByID method 2018-06-20 14:24:50 -06:00
Steven Polley 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
Steven Polley 3c8e0a424f Moved getHTTPResponseBody to requests.go what am i doing lol 2018-06-20 13:24:47 -06:00
Steven Polley 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
Steven Polley c21dc9c2cb Added ConnectwiseSite struct and method, added GetCompaniesByName method 2018-06-20 10:55:53 -06:00
Steven Polley 0c9c05c62d Add struct for companies 2018-06-20 09:47:40 -06:00
Steven Polley 6543a12edf Add incomplete disclaimer to readme 2018-06-20 09:16:40 -06:00
Steven Polley 5615e59be2
Initial commit 2018-06-20 08:39:46 -06:00