Commit Graph

27 Commits

Author SHA1 Message Date
Steven Polley
9b16b013fa Add support for clientID. Required in CW 2019.02 onwards. 2019-02-13 08:29:00 -07:00
460b0a8aa6 If we get an unexpected HTTP status code, print the body in error 2018-08-25 18:17:59 -06:00
Steven Polley
04e889c444 Better comments in requests.go to explain user impersonation 2018-08-03 15:00:17 -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
Steven Polley
28b6efc18c Fix user impersonation requests 2018-07-27 13:29:31 -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
b4d146e6e2 Add Patch
Add AssignTicketToTeam
2018-07-09 20:48:02 -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
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
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
e88572ea4c Various formatting, documentation and style changes. 2018-06-28 19:35:34 -06:00
3a78d5428a Restructure - using pointer receivers instead of passing *ConnectwiseSite to every single function 2018-06-22 21:14:08 -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
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