{"id":18817370,"url":"https://github.com/exoad/advices_slip_api","last_synced_at":"2026-04-30T14:31:26.711Z","repository":{"id":257821008,"uuid":"870872971","full_name":"exoad/advices_slip_api","owner":"exoad","description":"Dart wrapper for the Advice Slip JSON API","archived":false,"fork":false,"pushed_at":"2024-10-10T21:16:32.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T07:12:16.388Z","etag":null,"topics":["dart"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/advices_slip_api","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-4-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exoad.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,"zenodo":null}},"created_at":"2024-10-10T20:25:28.000Z","updated_at":"2024-10-10T21:18:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b04bb359-f892-487a-93cd-c772beb1f0e7","html_url":"https://github.com/exoad/advices_slip_api","commit_stats":null,"previous_names":["exoad/advices_slip_api"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/exoad/advices_slip_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fadvices_slip_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fadvices_slip_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fadvices_slip_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fadvices_slip_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exoad","download_url":"https://codeload.github.com/exoad/advices_slip_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exoad%2Fadvices_slip_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32468009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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"],"created_at":"2024-11-08T00:11:05.441Z","updated_at":"2026-04-30T14:31:26.705Z","avatar_url":"https://github.com/exoad.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\nAdvice Slips API Wrapper\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n\u003cstrong\u003e\u003cem\u003eAn unofficial wrapper for the \u003ca href=\"https://api.adviceslip.com\"/\u003eAdvice Slip JSON API\u003c/a\u003e to embed into your Dart/Flutter apps.\u003c/em\u003e\u003c/strong\u003e\n\u003c/p\u003e\n\n**Install it [here](https://pub.dev/packages/advices_slip_api)**\n\n## Installation\n\n**`pubspec.yaml`:**\n\n```yaml\ndependencies:\n    advices_slip_api: x.x.x\n```\n\n**Command Line**\n\n```shell\n[dart/flutter] pub add advices_slip_api\n```\n\n## Usage\n\n```\nimport \"package:advices_slip_api/advices_slip_api.dart\";\n```\n\n#### Available Functions\n\n**`randomAdvice()`** - Get a random advice\n\n\n**`findAdvice(query)`** - Find advices given a keyword to use to find\n\n\n**`getAdviceById(id)`** - Find an advice by its canonical id\n\n\n## Example Usage:\n\n```dart\nimport \"package:advices_slip_api/advices_slip_api.dart\";\n\nvoid main() async {\n  (await AdviceSlipsApi.randomAdvice())\n      .onSuccess((AdviceSlip advice) =\u003e print(advice))\n      .onFailure((Exception e) =\u003e print(e));\n  (await AdviceSlipsApi.findAdvice(\"life\"))\n      .onSuccess((List\u003cAdviceSlip\u003e advice) =\u003e print(advice))\n      .onFailure((Exception e) =\u003e print(e));\n  (await AdviceSlipsApi.findAdvice(\"life\"))\n      .onSuccess((List\u003cAdviceSlip\u003e advice) =\u003e print(advice))\n      .onFailure((Exception e) =\u003e print(e));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexoad%2Fadvices_slip_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexoad%2Fadvices_slip_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexoad%2Fadvices_slip_api/lists"}