Commit Graph
29 Commits
Author SHA1 Message Date
Paul Woolcock 0b4ee7bfb2 Various cleanup tasks
* Remove old `extern crate` stmts
* Remove rust-skeptic
* Clean up Cargo.toml
2020-09-25 16:44:06 -04:00
Paul Woolcock 16bc060407 Update to the 2018 edition
Only 2 years later :eyeroll:
2020-06-11 12:09:52 -04:00
Paul Woolcock e6879ec8ea change up examples slightly 2018-10-10 10:28:22 -04:00
Paul Woolcock 4dd40422b3 feat(api): shortcut methods for following & followers 2018-10-10 10:28:22 -04:00
Paul Woolcock 9a080583f0 feature(api): Change u64 ids to &str
Breaking change: All the entities with an `id` property have String ids, but all
endpoints that take ids used `u64` ids. This changes that so that all
the methods that take ids, take them as `&str`.
2018-10-04 05:14:10 -04:00
Paul Woolcock 7d752a9fed Adds the replies_count property to Status
Closes #73
2018-09-10 08:09:09 -04:00
Paul Woolcock 34e2c00866 change POST /search to GET /search 2018-09-07 00:53:01 -04:00
Paul Woolcock 034bd4e6d1 Add a helper for completing authentication via the command line 2018-08-31 07:26:03 -04:00
Paul Woolcock e284894d40 feat(scopes): Implement granular OAuth scopes
BREAKING CHANGE: Applications that use the `Scopes` data structure will
have minor changes to make

Closes #44
2018-08-30 19:12:16 -04:00
Paul Woolcock 0df3f9fa2b Rework the Registration and App APIs
This puts `register` back to the way it was, and changes the "new"
`register` to `build`.
2018-08-27 19:28:33 -04:00
Paul Woolcock 1057e58343 There's no reason for Registration::complete to take an owned string 2018-08-27 11:27:19 -04:00
Paul Woolcock a407249fa5 Remove elefren::apps::prelude
Since we don't need `App` in a prelude anymore, just move `Registration`
and `Scopes` to the main prelude and get rid of `elefren::apps::prelude`
2018-08-26 08:41:19 -04:00
Paul Woolcock 45f4cbbbfe Move the toml helpers to elefren::helpers::toml 2018-08-25 09:13:49 -04:00
Paul Woolcock c5788b8bd5 rustfmt pass 2018-08-25 09:13:34 -04:00
Paul Woolcock 1436c28e42 duplicate the AppBuilder api in Registration
Closes #13
2018-08-25 09:13:34 -04:00
Paul Woolcock 043d3753e1 rustfmt pass 2018-08-24 11:55:07 -04:00
Paul Woolcock 5017104e63 Make the examples no-ops when toml is not enabled 2018-08-24 11:45:40 -04:00
Paul Woolcock 3330a26760 rustfmt pass 2018-08-23 21:46:31 -04:00
Paul Woolcock 6ddea87765 Use the new toml helpers instead of the toml crate 2018-08-23 14:47:46 -04:00
Paul Woolcock 8636e690c3 rustfmt pass 2018-08-23 10:35:26 -04:00
Paul Woolcock 0f5e295ea9 Revamp registration & auth process 2018-08-23 07:59:31 -04:00
Paul Woolcock cc083e335e Change Mastodon::from_data to just Mastodon::from 2018-08-22 06:48:56 -04:00
Paul Woolcock a9b6b52890 Change mammut references to elefren 2018-08-21 17:01:05 -04:00
Paul Woolcock 22b4b04738 Adds a MastodonClient trait
This is useful for user code, which can use the trait to add a layer of
indirection to their code, allowing them to swap out implementations for
testing
2018-08-21 16:29:57 -04:00
Aaron Power 70ecc26ab8 Changed Scope for examples and allowed input of custom domain. 2018-06-29 15:32:32 +01:00
Aaron Power 53f403d99d Moved upload_photo to an example 2018-06-29 11:17:36 +01:00
Aaron Power 523d83022e Fixed example code, and {un}follow routes. 2018-06-29 11:10:50 +01:00
Aaron Power 43858e5729 reformatted example and made it the README example. 2018-02-12 00:15:35 +00:00
Aaron Power 4984dfaacf Version 0.10.0-rc1
- Added the ability to handle paged entities like favourites and such.
  (Only favourites in prerelease)
- Added optional `source` and `moved` fields to `Account`.
- Added `Source` struct to match with the `Account.source` field.
- Added `CredientialsBuilder` struct for updating profile using
  `verify_credientials`.
- Attachment now handles being sent an empty object, which is converted
  to `None`.
- Added ombed data fields to `Card`.
- Added `version` and `urls` fields to `Instance`.
- Added `id`, `muting_notifications`, and `domain_blocking` to `Relationship`.
- Added `emojis`, `language`, and `pinned` fields to `Status`
- Added `Emoji` struct.
- Added `List` and `Mention` structs(matching routes not added yet).
- Added example that prints your profile.
2018-02-12 00:09:23 +00:00