{"id":19595239,"url":"https://github.com/dhmgroup/dart-wp","last_synced_at":"2025-10-08T19:31:33.089Z","repository":{"id":47150776,"uuid":"163590162","full_name":"dhmgroup/dart-wp","owner":"dhmgroup","description":"A WordPress API client for dart with support for WooCommerce and custom namespaces.","archived":false,"fork":false,"pushed_at":"2024-07-29T23:54:27.000Z","size":304,"stargazers_count":78,"open_issues_count":8,"forks_count":28,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-19T17:06:50.259Z","etag":null,"topics":["dart","dart-package","dart-vm","dartlang","flutter","flutter-plugin","woocommerce","wordpress"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/wordpress_api","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhmgroup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-30T13:40:46.000Z","updated_at":"2025-01-08T14:54:30.000Z","dependencies_parsed_at":"2024-11-11T08:46:27.305Z","dependency_job_id":"8cbc253b-21a6-491f-b5ee-69eb4b414a15","html_url":"https://github.com/dhmgroup/dart-wp","commit_stats":{"total_commits":78,"total_committers":9,"mean_commits":8.666666666666666,"dds":0.3589743589743589,"last_synced_commit":"530a47e7f2392cd643a1895e9125635329df1ee0"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhmgroup%2Fdart-wp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhmgroup%2Fdart-wp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhmgroup%2Fdart-wp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhmgroup%2Fdart-wp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhmgroup","download_url":"https://codeload.github.com/dhmgroup/dart-wp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235749099,"owners_count":19039347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","dart-package","dart-vm","dartlang","flutter","flutter-plugin","woocommerce","wordpress"],"created_at":"2024-11-11T08:46:16.715Z","updated_at":"2025-10-08T19:31:27.639Z","avatar_url":"https://github.com/dhmgroup.png","language":"Dart","readme":"# WordPress REST API client for [Dart](https://dart.dev/) | [Flutter](https://flutter.dev)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n[![GitHub stars](https://img.shields.io/github/stars/dhmgroup/dart-wp.svg?style=social\u0026label=Star\u0026maxAge=2592000)](https://github.com/dhmgroup/dart-wp/stargazers/)\n[![Pub](https://img.shields.io/pub/v/wordpress_api.svg?style=flat-square)](https://pub.dartlang.org/packages/wordpress_api)\n[![Build Status](https://travis-ci.org/dhmgroup/dart-wp.svg?branch=master)](https://travis-ci.org/dhmgroup/dart-wp)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/dhmgroup/dart-wp/graphs/commit-activity)\n\n## Description\n\nA WordPress REST API client for dart with support for WooCommerce and custom namespaces/endpoints.\n\n## Features\n\n- Retrieve data from standard WordPress endpoints.\n- Retrieve data from any custom namespace\n\n## Installation\n\nIn the `dependencies:` section of your `pubspec.yaml`, add the following line:\n\n```yaml\ndependencies:\n  wordpress_api: \u003clatest_version\u003e\n```\n\n## Usage\n\n- Import the package\n\n```dart\nimport 'package:wordpress_api/wordpress_api';\n```\n\n- Initialize WPAPI\n\n```dart\n  WordPressAPI api = WordPressAPI('wp-site.com');\n```\n\n- Retrieve posts from `.posts` getter\n\n  - You can fetch a list of posts by simply calling `.posts`. More arguments can be passed to further filter the data returned\n\n  ```dart\n    void main() async {\n      final api = WordPressAPI('wp-site.com');\n      final WPResponse res = await api.posts.fetch();\n      for (final post in res.data) {\n        print(post.title);\n      }\n    }\n  ```\n\n  - As of `v0.3.0`, you can query a single post from the same endpoint by passing an `id`\n\n  ```dart\n    void main() async {\n      final api = WordPressAPI('wp-site.com');\n      final WPResponse res = await api.posts.fetch(id: 1);\n      print(res.data.title);\n    }\n  ```\n\n- Retrieve data from a custom endpoint\n\n```dart\n  void main() async {\n    final api = WordPressAPI('wp-site.com');\n    final WPResponse res = await api.get(endpoint: 'your-custom-endpoint');\n    print(res.data);\n  }\n```\n\n## ToDo\n\n- Authentication using `Application Passwords`. *WordPress 5.6+ only*\n- Fully integrated WooCommerce support.\n- Full CRUD operations.\n- Support for other popular WordPress Plugins.\n\nContributions are welcome, report any issues [here](https://github.com/dhmgroup/dart-wp/issues)\n\n## Special Thanks\n\n- [WordPress REST API Handbook](https://developer.wordpress.org/rest-api/reference/) - Read the Handbank for additional arguments/query parameter.\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/ankiimation\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/41232001?v=4?s=100\" width=\"100px;\" alt=\"anKii\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eanKii\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dhmgroup/dart-wp/commits?author=ankiimation\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\u003ca href=\"https://kellvem.pt\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3621135?v=4?s=100\" width=\"100px;\" alt=\"Kellvem Barbosa\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKellvem Barbosa\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dhmgroup/dart-wp/commits?author=kellvembarbosa\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/NKlage\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/18156976?v=4?s=100\" width=\"100px;\" alt=\"NKlage\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNKlage\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dhmgroup/dart-wp/commits?author=NKlage\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/dhmgroup/dart-wp/issues?q=author%3ANKlage\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\u003ca href=\"https://nemesisx1.showwcase.com/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/55746329?v=4?s=100\" width=\"100px;\" alt=\"Elikem (Junior) Medehou\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eElikem (Junior) Medehou\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dhmgroup/dart-wp/commits?author=NemesisX1\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\u003ca href=\"http://diziyleogren.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/43478072?v=4?s=100\" width=\"100px;\" alt=\"Okan Demir\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eOkan Demir\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dhmgroup/dart-wp/commits?author=okandemirofficial\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhmgroup%2Fdart-wp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhmgroup%2Fdart-wp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhmgroup%2Fdart-wp/lists"}