Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemmurorg/lemmy_api_client
Dart lemmy client
https://github.com/lemmurorg/lemmy_api_client
dart dartlang hacktoberfest
Last synced: about 1 month ago
JSON representation
Dart lemmy client
- Host: GitHub
- URL: https://github.com/lemmurorg/lemmy_api_client
- Owner: LemmurOrg
- License: mit
- Archived: true
- Created: 2020-08-20T13:34:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T14:57:48.000Z (almost 2 years ago)
- Last Synced: 2024-09-30T16:40:01.482Z (about 1 month ago)
- Topics: dart, dartlang, hacktoberfest
- Language: Dart
- Homepage:
- Size: 1.8 MB
- Stars: 16
- Watchers: 6
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ⚠️ THIS PROJECT IS NOT MAINTAINED ANYMORE ⚠️
This project has been officially dropped due to lack of interest and political differences. If anyone is interested in continuing developement, feel free to fork it. For any questions you can message [krawieck](https://matrix.to/#/@krawieck:matrix.org) (who was responsible for the flutter app) or [shilangyu](https://matrix.to/#/@shilangyu:matrix.org) (who was responsible for lemmy_api_client).
---
# Lemmy Dart API client
[![](https://img.shields.io/pub/v/lemmy_api_client.svg?logo=dart)](https://pub.dev/packages/lemmy_api_client)
[![](https://github.com/LemmurOrg/lemmy_api_client/workflows/ci/badge.svg)](https://github.com/LemmurOrg/lemmy_api_client/actions)A Dart client for the [Lemmy API](https://join-lemmy.org/api/)
## Features
- Future-based
- Works both for Web and Native environments
- Strictly typed responses
- Room websocket joins
- Pictrs endpoints
- Models have a `.instanceHost` property that indicate the instance that returned this model## Example
```dart
import 'package:lemmy_api_client/v3.dart';Future main() async {
// instantiate your lemmy instance with the host uri
const lemmy = LemmyApiV3('lemmy.ml');// call methods that are named after op codes from the lemmy docs
final response =
await lemmy.run(const Login(usernameOrEmail: 'asd', password: 'ads'));final messages = await lemmy
.run(GetPrivateMessages(unreadOnly: true, auth: response.jwt!.raw));print(messages);
}
```_check out [Lemmur](https://github.com/LemmurOrg/lemmur), a mobile Lemmy client in Flutter_
---
Original Lemmy logo made by Andy Cuccaro (@andycuccaro) under the CC-BY-SA 4.0 license. Remixed by Marcin Wojnarowski (@shilangyu) and re-released under the CC-BY-SA 4.0 license.