A Future-based wrapper around the Relief Web API, to retrieve information on humanitarian news, reports, training, jobs, and disasters, designed to be multi-platform with minimal dependencies, for use in mobile, desktop, or browser apps.
This is a community maintained library which has no association with the United Nations Office for the Coordination of Humanitarian Affairs (OCHA).
Using
The easiest way to use this library is via the top-level ReliefWeb
class.
import 'package:relief_web/relief_web.dart';
void main() async {
/// Initialize the main object
ReliefWeb reliefWeb = ReliefWeb();
/// Get reports
var reports = await reliefWeb.getReports();
/// Do stuff with the reports
print(reports.length);
/// Close the connection
reliefWeb.close();
}
Getting Help
Submit an issue on github.
This work builds upon:
Do check out their work too!
How to contribute
All feedback and suggestions for improvements are welcome:
- Open a discussion on github
- Discuss proposed changes
- Submit a PR (optional)
Support my work
This package is possible thanks to the people and companies who donate money, services or time to keep the project running.
If you're interested in becoming a Sponsor, Backer or Contributor to expand the project, please visit my github sponsors page.
Or buy me coffee at 0xdir.near
.
Libraries
- relief_web
- A Future-based wrapper around the
Relief Web
API, to retrieve information on humanitarian news, reports, training, jobs, and disasters.