Commit Graph

9 Commits

Author SHA1 Message Date
Owen
46a2f52ca6 Return errors from JSON encode/decode
I found two JSON errors being shadowed; the one in amazon/validator.go
is being hidden by errors.New(responseError.Message) -- which should be
an empty string if there's a JSON error. So, it wouldn't report success,
but this gives the caller better information on what failed.

The second is in appstore/validator.go, which was ignoring encode errors
before POSTing a verify request.
2019-04-24 11:39:02 -04:00
Junpei Tsuji
8e67f122c0 Added client timeout because http.DefaultClient doesn't have timeout 2018-05-18 12:31:19 +09:00
Junpei Tsuji
034e269dc9 Support custom client for amazon app store 2018-05-18 12:06:59 +09:00
Junpei Tsuji
8c93c4b714 Support context for amazon app store 2018-05-18 12:06:59 +09:00
Junpei Tsuji
8b1c418ab7 Use standard http package instead of gorequest 2017-04-11 10:04:11 +09:00
Junpei Tsuji
ebac4ddf8d Use http package instead of gorequest 2016-11-01 23:34:46 +09:00
Jumpei Tsuji
c6384b927f Golint and fixed a typo 2016-06-08 15:42:49 +09:00
djworth
633046093d Add the ability to override the sandbox url
Using an envirnoment variable called `IAP_SANDBOX_URL` you can override the sandbox url
2015-12-02 13:28:29 -05:00
djworth
1e0b41348c Adding Amazon IAP to the go-iap library
Fix the README by updating the amazon example
2015-11-24 12:04:46 -05:00