summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2021-05-19mastodon_client: Remove needless lifetimeChristopher Davis
See https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes Should fix the CI
2021-05-19Fix deprecation warningPaul Woolcock
2020-10-07Add basic async clientPaul Woolcock
This adds a module, accessible by compiling with `--features async`, that provides an `elefren::async::Client`. The client is runtime-agnostic, and currently only provides unauthenticated access, see the docs for the full list of methods that can be performed* with this client. * note that some API calls are publicly available by default, but can be changed via instance settings to not be publicly accessible
2020-10-07Change builder style for requestsPaul Woolcock
2020-10-07Add some new entities & update some existing onesPaul Woolcock
2020-09-29use the async reqwest client but present the same blocking apiPaul Woolcock
2020-09-29use std::convert::TryInto instead of using crateranfdev
2020-09-27Manually updated reqwest to 10.8 and url to 2.1ranfdev
2020-09-26Remove `HttpSend` and `HttpSender`Paul Woolcock
this was maybe a good idea, but it isn't really needed
2020-09-25Add builder method for exclude_reblogsPaul Woolcock
2020-09-25Add an `exclude_reblogs` to StatusesRequestPaul Woolcock
Closes #134
2020-09-25fix clippy, againPaul Woolcock
2020-09-25use nightly fmtPaul Woolcock
2020-09-25Second fmt passPaul Woolcock
2020-09-25making clippy happyPaul Woolcock
2020-09-25Cargo-fmt passPaul Woolcock
2020-09-25Various cleanup tasksPaul Woolcock
* Remove old `extern crate` stmts * Remove rust-skeptic * Clean up Cargo.toml
2020-09-25feat(media): Add support for media alt textKlaus Purer
2020-09-25added methods returning pages for timelines home, local, federated, hashtagRanfdev
2020-09-25Add MastodonUnauth::streaming_public()Matthias Beyer
This is the simple implementation copied from the Mastodon::streaming_public() code. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-06-11Update to the 2018 editionPaul Woolcock
Only 2 years later :eyeroll:
2020-06-08Update version to 0.22Paul Woolcock
2020-06-08Remove url 2.xleo60228
I thought tungstenite needed it, but it doesn't.
2020-06-08Use WebSockets for eventsleo60228
2020-05-06Use more suitable link to Mastodon's documentationJulian
2020-05-06Fix link to Mastodon's documentationJulian Hofer
2020-04-07Update error type to remove deprecated `description` usesPaul Woolcock
2020-04-07Use `slice::iter` instead of `into_iter` to avoid future breakageAaron Hill
`an_array.into_iter()` currently just works because of the autoref feature, which then calls `<[T] as IntoIterator>::into_iter`. But in the future, arrays will implement `IntoIterator`, too. In order to avoid problems in the future, the call is replaced by `iter()` which is shorter and more explicit.
2020-04-07add documentation to metadata fieldsJennifer Glauche
2020-04-07make MetadataFields be publicJennifer Glauche
2020-04-07Add content_type support to StatusBuilderOndřej Hruška
2020-04-07Make Scopes deserializableOndřej Hruška
2019-09-04fix rustfmtPaul Woolcock
2019-09-04Add the "Dismiss Notification" endpointPaul Woolcock
2019-05-22log API responsesPaul Woolcock
2019-05-09Changes the StatusBuilder to be an...actual...builderPaul Woolcock
This will enforce the invariant that statuses have to have either status text or a media_id
2019-05-05Block and Unblock should be `post` callsPaul Woolcock
2019-04-30account: Properly mark nullable source fieldsChristopher Davis
Privacy and note are both nullable according to https://source.joinmastodon.org/mastodon/docs/blob/master/content/en/api/entities.md#source
2019-04-29Add an `OwnedPage` that doesn't borrow the underlying clientPaul Woolcock
2019-04-25Fix Card entity to take a number for width x heightPaul Woolcock
2019-04-25Fix block, unblock, mute and unmutePaul Woolcock
These 4 API calls should return a Relationship, not an Account
2019-04-15Add `force_login` to the params sent to the /oauth/authorize endpointPaul Woolcock
2019-03-16add the beginning of an unauthenticated clientPaul Woolcock
2019-03-10Add `card` to `Status` entityPaul Woolcock
2019-03-09Add `min_id` to pagination paramsPaul Woolcock
also switches to using serde_qs instead of manually serializing the query string
2019-03-06Add some docs for streamingPaul Woolcock
2019-03-06remove dbg logsPaul Woolcock
2019-03-06Initial commit of streaming supportPaul Woolcock
2019-03-06Fix panic if there are < page number of resultsPaul Woolcock
2019-03-05use string for status id in StatusBuilderPaul Woolcock