{"id":18873152,"url":"https://github.com/barredterra/what_the_code","last_synced_at":"2026-05-07T07:39:26.454Z","repository":{"id":148980437,"uuid":"139278385","full_name":"barredterra/what_the_code","owner":"barredterra","description":"Flutter wrapper for the UpcItemDb API","archived":false,"fork":false,"pushed_at":"2018-06-30T21:12:40.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T00:32:12.852Z","etag":null,"topics":["api-wrapper","barcode","barcode-reader","barcodes","dartlang","flutter","flutter-plugin"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barredterra.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-06-30T20:37:55.000Z","updated_at":"2023-03-04T09:13:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"df670698-0ccd-4025-b2d9-571b353b9852","html_url":"https://github.com/barredterra/what_the_code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barredterra%2Fwhat_the_code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barredterra%2Fwhat_the_code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barredterra%2Fwhat_the_code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barredterra%2Fwhat_the_code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barredterra","download_url":"https://codeload.github.com/barredterra/what_the_code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239824981,"owners_count":19703199,"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":["api-wrapper","barcode","barcode-reader","barcodes","dartlang","flutter","flutter-plugin"],"created_at":"2024-11-08T05:33:58.615Z","updated_at":"2026-02-16T04:30:15.808Z","avatar_url":"https://github.com/barredterra.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flutter wrapper for the [UPCitemdb](http://www.upcitemdb.com) API.\n\nNote: This is **unofficial, experimental, non-production** code. \n\n# Getting started\nFor help getting started with Flutter, view the online [documentation](https://flutter.io/docs).\n\nClone this repository into your app's `lib/src/lib` and use it like in this example:\n\n```dart\nimport './src/lib/upc_item_db/lib/upc_item_db.dart';\n\nUpcItemDb db = new UpcItemDB();\nItemsResponse response;\n\ntry {\n    response = await db.lookup(barcode);\n} on ErrorResponse catch (e) {\n    // Exceeded rate limit or item not found\n    print(e.code + ': ' + e.message)\n}\nif (response != null) {\n    // Item lookup successful\n    Item firstItem = response.items[0];\n    print(firstItem.title);\n}\n```\n\n# Methods\n\n## lookup()\nAccepts a barcode string (UPC, ISBN or EAN).\n\n```dart\nUpcItemDb db = new UpcItemDB();\nItemsResponse response = await db.lookup(barcode);\n```\n\n## search()\nAccepts a search string.\n\n```dart\nUpcItemDb db = new UpcItemDB();\nItemsResponse response = await db.lookup(barcode);\n```\n\n# Response Objects\n\n## ItemsResponse\nContains a list of 0..n matched items.\n\n```dart\nclass ItemsResponse {\n    String code;\n    int total;\n    int offset; \n    List\u003cItem\u003e items;\n}\n```\n\n## Item\nMatched item with default properties. (There may be more)\n\n```dart\nclass Item {\n    String ean;\n    String title;\n    String description;\n    String brand;\n    String model;\n    String color;\n    String size;\n    String dimension;\n    String weight;\n}\n```\n\n# Contributing\nFor help on editing package code, view the Flutter [documentation](https://flutter.io/developing-packages/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarredterra%2Fwhat_the_code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarredterra%2Fwhat_the_code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarredterra%2Fwhat_the_code/lists"}