Commit Graph

27 Commits

Author SHA1 Message Date
Alex Pliutau
481eb3337f
Merge pull request #44 from NicholasAsimov/fix-granttokenfromauthocode
Fix GrantNewAccessTokenFromAuthCode method
2017-10-29 14:44:47 +07:00
Nicholas Asimov
06b13fe21f Fix GrantNewAccessTokenFromAuthCode method.
Changes made:
1. Body is sent as a form-urlencoded values instead of json
2. Basic auth is used for authorization instead of an access token
2017-10-21 16:24:02 +03:00
Nicholas Asimov
96fea7c1ae Set correct "zero time" in SetAccessToken 2017-10-21 16:22:04 +03:00
Alex Pliutau
36bba2d583 Fix linter issues 2017-10-02 22:30:39 -05:00
Alex Pliutau
3b03097b1b Merge branch 'master' into feature-http-client 2017-07-09 21:20:19 +07:00
vvakame
c9eb8b7137 Add SetHTTPClient function to *Client
When we use GoogleAppEngine/Go environment, We should replace http.Client to urlfetch.Client.
2017-07-07 18:57:02 +09:00
Bryce Kahle
a4e4a4476c Use t.Sub(time.Now()) because time.Until isn't available until go 1.8 2017-07-06 19:08:37 -04:00
Bryce Kahle
d06b0102ce Fix access token refresh 2017-07-06 18:52:39 -04:00
Aliaksandr Pliutau
d3229e32c6 Fixed #26 2017-04-05 10:37:54 +07:00
Aliaksandr Pliutau
dd920d5151 #23: unit_test.go, integration_test.go 2017-03-02 10:43:23 +07:00
Dmitry Chusovitin
be08e9ec4a Fixed panic on logging requests without body (GET) 2016-12-28 20:48:50 +03:00
Aliaksandr Pliutau
7e723285e7 Fixed #11 2016-12-19 12:55:00 +07:00
Aliaksandr Pliutau
c4c61ec4bc mocrofix 2016-12-01 11:57:34 +07:00
Aliaksandr Pliutau
0bbdd821f8 req log 2016-12-01 11:32:21 +07:00
Aliaksandr Pliutau
768e6872d3 httputil.DumpRequest(req, true) 2016-12-01 11:22:38 +07:00
Aliaksandr Pliutau
f65c5dc88e Fixed #15 2016-09-19 11:39:05 +07:00
Anthony Poschen
f6bd5b385e CHANGE: Renamed 'SetLogFile' to 'SetLog' and changed the parameter from a string to io.Writer
CHANGE: Changed logFile name and type to name Log of type io.Writer
CHANGE: func log of client now uses new log object.
2016-05-14 15:39:35 +10:00
Aliaksandr Pliutau
3f5e093801 godoc comments 2015-12-29 16:21:11 +07:00
Aliaksandr Pliutau
0c8d78e8a2 GetAuthorization, CreatePayment, tests, README 2015-12-01 11:35:25 +07:00
Aliaksandr Pliutau
b8dcf26390 log req+resp 2015-11-20 10:17:42 +07:00
Aliaksandr Pliutau
ba0fb56eea SendWithAuth 2015-11-20 09:57:45 +07:00
Aliaksandr Pliutau
5043557577 log 2015-11-20 09:51:18 +07:00
Alexander Plutov
5fa983e86a SetAccessToken 2015-11-19 12:12:42 +07:00
Aliaksandr Pliutau
3a2323e1ef little fixes after understanding 2015-10-30 14:02:32 +07:00
Aliaksandr Pliutau
0277b266bf GetRefreshToken 2015-10-16 17:00:57 +07:00
LAZHCM10161
93d412d46f client_test.go 2015-10-15 12:52:16 +07:00
Alexander Plutov
54034e1d72 GetAccessToken 2015-10-15 12:43:50 +07:00