Commit Graph

9 Commits

Author SHA1 Message Date
Tyr Mactire
2a3ac1d1d5 Client Credentials 2022-08-27 13:35:59 +09:00
Ben Lubar
c5945152ec Add convenience function to authenticate using OAuth2.
This is required for users who have 2-factor authentication enabled, and is generally safer because users don't need to give their password to third-party software.
2018-11-22 21:37:40 +09:00
Yasuhiro Matsumoto
83242d96ca fix #68 2017-11-30 14:53:54 +09:00
TSUYUSATO Kitsune
fb53d41dd9 Correct context uses
`doAPI`'s `context` does not work due to `WithContext` immutability.
`Authenticate` and `RegisterApp` does not use `context` although they
needs `context`, so their `context` does not work also. This commit fixes
them and add test cases.
2017-04-19 18:53:55 +09:00
178inaba
aa0f9563ac Fix to parse API error 2017-04-19 14:32:53 +09:00
Yasuhiro Matsumoto
5e84b57bf3 breaking compatibility changes. take context for first arguments. 2017-04-17 11:10:29 +09:00
178inaba
c63f290928 Fix var name url to u 2017-04-15 04:36:27 +09:00
178inaba
9dee3fc07f Fix POST to http.MethodPost 2017-04-14 23:59:11 +09:00
Yasuhiro Matsumoto
9b32db08fb add missing file 2017-04-14 23:46:15 +09:00