Commit Graph

35 Commits

Author SHA1 Message Date
Curtis McEnroe 466dbcf7b1
Sort imports 2017-08-23 16:06:18 -04:00
PoiScript 042c1826bf
Replace hyper with reqwest 2017-08-23 14:53:26 -04:00
Curtis McEnroe 80257f236a
Treat providers primarily as values 2017-08-23 14:09:05 -04:00
Matthew Scheirer f1390ce8a5 Make provider pub so consumer can access it, and don't require all providers to be default 2017-08-18 23:50:10 -04:00
Matthew Scheirer f44a638568 add with_provider to construct clients with complex providers 2017-08-18 21:08:44 -04:00
Matthew Scheirer 179532e061 Support dynamic providers 2017-08-18 18:55:13 -04:00
Curtis McEnroe 80a7a02050
Style cleanup 2017-06-04 20:22:29 -04:00
Curtis McEnroe 62e8d11cb6
Replace rustc_serialize with serde 2017-06-04 19:53:04 -04:00
Curtis McEnroe 00babef32a
Update hyper 0.9.0, url 1.1.0 2016-05-22 16:52:58 -04:00
Curtis McEnroe 0132a85be2 Return Url from Client::auth_uri
Fixes #10.
2016-02-27 19:48:41 -05:00
Curtis McEnroe 9ae0feccc8 Rename Expiring to Refresh 2016-02-27 19:11:01 -05:00
Curtis McEnroe 93ac962b32 Rename Google provider to google::Installed 2016-02-27 19:09:58 -05:00
Curtis McEnroe 0e9cb14231 Fix clippy lints 2016-02-23 15:50:01 -05:00
Curtis McEnroe c6aec754c3 Take String in Client::new 2016-01-28 21:54:14 -05:00
Curtis McEnroe ad23733ce4 Make Client fields public 2016-01-28 21:20:03 -05:00
Curtis McEnroe 954975732b Implement Debug, Clone, PartialEq, Eq for Client 2016-01-28 21:16:27 -05:00
Konstantin Stepanov d08e71760b accept http client as a reference to *_token() methods 2016-01-28 11:19:41 -05:00
Konstantin Stepanov 52376a27fc credentials_in_body applies to all token request (fixes #6) 2016-01-28 14:42:18 +03:00
Konstantin Stepanov 22123533ba optionally pass credentials in request body 2016-01-26 00:50:14 +03:00
Curtis McEnroe 10775d0823 Derive Clone, Copy, PartialEq, Eq wherever possible 2015-12-30 02:57:02 -05:00
Curtis McEnroe c0da5aa016 Update examples for Client reexport 2015-12-25 20:23:48 -05:00
Curtis McEnroe cce6471a93 Implement Client::ensure_token 2015-12-24 15:49:48 -05:00
Curtis McEnroe 43bc9f4e48 Implement Client::refresh_token 2015-12-24 14:37:42 -05:00
Curtis McEnroe 4fbe31693f Factor out Client::post_token 2015-12-24 14:30:07 -05:00
Curtis McEnroe d31ccaf473 Return ClientError from Client::auth_uri 2015-12-24 14:22:04 -05:00
Curtis McEnroe 03b178c89c Implement Client::request_token 2015-12-24 01:11:01 -05:00
Curtis McEnroe 8192d806f7 Add ClientError enum 2015-12-24 00:58:20 -05:00
Curtis McEnroe 2628759a2e Implement FromResponse for tokens 2015-12-23 23:46:21 -05:00
Curtis McEnroe db058fffdf Derive Eq for ParseError 2015-12-23 23:07:26 -05:00
Curtis McEnroe 228c732e2e Add JsonObjectHelper::get_string_option 2015-12-23 22:43:19 -05:00
Curtis McEnroe 71d147eb83 Add Json helpers 2015-12-22 01:45:12 -05:00
Curtis McEnroe dc513cab34 Implement Debug for Client
ಠ╭╮ಠ
2015-12-22 00:41:36 -05:00
Curtis McEnroe 59874c36da Add FromResponse::from_response_inherit 2015-12-22 00:16:30 -05:00
Curtis McEnroe 7e3f77aa83 Rename client::response and make public 2015-12-22 00:08:34 -05:00
Curtis McEnroe bc9555c9b9 Add FromResponse trait and ParseError 2015-12-22 00:02:29 -05:00