{"id":15008691,"url":"https://github.com/samarthagarwal/woocommerce_dart","last_synced_at":"2025-08-20T22:32:03.081Z","repository":{"id":37752266,"uuid":"130071339","full_name":"samarthagarwal/woocommerce_dart","owner":"samarthagarwal","description":"A dart package to interact with the WooCommerce REST API.","archived":false,"fork":false,"pushed_at":"2024-02-12T12:48:31.000Z","size":7224,"stargazers_count":92,"open_issues_count":7,"forks_count":47,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-17T17:48:31.781Z","etag":null,"topics":["dart","dartlang","flutter","flutter-package","woocommerce-api"],"latest_commit_sha":null,"homepage":null,"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/samarthagarwal.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-04-18T14:02:30.000Z","updated_at":"2025-01-16T14:13:13.000Z","dependencies_parsed_at":"2024-08-22T23:24:32.902Z","dependency_job_id":null,"html_url":"https://github.com/samarthagarwal/woocommerce_dart","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":"0.33333333333333337","last_synced_commit":"a7cc4580997065ff12987258916100a47abf48c8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samarthagarwal/woocommerce_dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samarthagarwal%2Fwoocommerce_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samarthagarwal%2Fwoocommerce_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samarthagarwal%2Fwoocommerce_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samarthagarwal%2Fwoocommerce_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samarthagarwal","download_url":"https://codeload.github.com/samarthagarwal/woocommerce_dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samarthagarwal%2Fwoocommerce_dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271397957,"owners_count":24752640,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","dartlang","flutter","flutter-package","woocommerce-api"],"created_at":"2024-09-24T19:20:01.971Z","updated_at":"2025-08-20T22:32:00.998Z","avatar_url":"https://github.com/samarthagarwal.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WooCommerce SDK for Dart\n\nA dart package to interact with the WooCommerce API (now with null-safety). It uses OAuth1.0a behind the scenes to generate the signature and URL string for http based websites. It then makes calls and returns the data back to the calling function asynchronously.\n\n![Example code and preview](Screenshot.png)\n\n## Examples\n\n### GET request (Fetch products)\n```dart\nFuture getProducts() async {\n  // Initialize the API\n  WooCommerceAPI wooCommerceAPI = WooCommerceAPI(\n      url: \"https://www.yourwebsite.com\",\n      consumerKey: \"ck_your_consumer_key\",\n      consumerSecret: \"cs_your_consumer_secret\");\n\n  // Get data using the \"products\" endpoint\n  var products = await wooCommerceAPI.getAsync(\"products\");\n  return products;\n}\n```\nYou can find a full example [here](example/fetch_products.dart)\n\n### POST request (Create a customer)\n```dart\nFuture createCustomer() async {\n  try {\n    var response = await wooCommerceAPI.postAsync(\n      \"customers\",\n      {\n        \"email\": 's@c.com',\n        \"password\": \"123\",\n        \"billing\": {\n          \"first_name\": \"Samarth\",\n        }\n      },\n    );\n    print(response); // JSON Object with response\n  } catch (e) {\n    print(e);\n  }\n}\n```\n\n### Report any issues if you face any or drop me an email at samarthagarwal@live.com\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamarthagarwal%2Fwoocommerce_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamarthagarwal%2Fwoocommerce_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamarthagarwal%2Fwoocommerce_dart/lists"}