TariqueNasrullah
326d69cc9e
fixed grammatical error
2021-09-13 00:53:49 +06:00
Thomas Frössman
cc8b3cee69
add context support
2021-01-03 10:49:14 +01:00
Alex Pliutau
0e7098bda4
Include the 'items' in the response when capturing orders
2020-01-06 15:27:03 +01:00
Alex Pliutau
e70e544c1a
Update package name
2019-08-21 15:50:20 +02:00
Daniel Melton
cc05027dd1
revert of time.Until which fails on 1.5,1.6, & 1.7
2019-06-17 07:39:03 -04:00
Daniel Melton
2c6b470ed7
code style efficiencies added
2019-06-15 22:39:08 -04:00
Antoine Pourchet
4303b79440
Added comments for clarity
2019-02-28 20:17:03 -08:00
Antoine Pourchet
bb976e776e
Locking SendWithAuth to fix race condition
...
When SendWithAuth gets called in a multithreaded environment on the
same Client object, a concurrent read and write of c.Token might happen
in GetAccessToken.
This patch solves the issue by locking the client while we get a new
access token in SendWithAuth.
2019-02-26 23:26:37 -08:00
Alex Pliutau
af8120920e
Simplify return values
2018-08-29 14:52:31 +07:00
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