{"id":31917926,"url":"https://github.com/hiscaler/woocommerce-go","last_synced_at":"2025-10-13T20:51:51.664Z","repository":{"id":37321839,"uuid":"491774685","full_name":"hiscaler/woocommerce-go","owner":"hiscaler","description":"WooCommerce  Rest API SDK","archived":false,"fork":false,"pushed_at":"2025-07-21T03:00:39.000Z","size":163,"stargazers_count":12,"open_issues_count":2,"forks_count":16,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-21T04:26:49.339Z","etag":null,"topics":["api","woo","woocommerce","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hiscaler.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":"2022-05-13T05:56:48.000Z","updated_at":"2025-07-21T03:00:42.000Z","dependencies_parsed_at":"2024-06-20T00:12:34.868Z","dependency_job_id":"0e6ca97e-cdf0-4861-8246-629a0df5836a","html_url":"https://github.com/hiscaler/woocommerce-go","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hiscaler/woocommerce-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Fwoocommerce-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Fwoocommerce-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Fwoocommerce-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Fwoocommerce-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiscaler","download_url":"https://codeload.github.com/hiscaler/woocommerce-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiscaler%2Fwoocommerce-go/sbom","scorecard":{"id":465473,"data":{"date":"2025-08-11","repo":{"name":"github.com/hiscaler/woocommerce-go","commit":"f62a22a28bba82c521bc5fa3b95a350ba804d27c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 4/23 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":5,"reason":"5 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2023-1495 / GHSA-fxg5-wq6x-vr4w","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp","Warn: Project is vulnerable to: GO-2022-0603 / GHSA-hp87-p4gw-j4gq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T12:22:37.762Z","repository_id":37321839,"created_at":"2025-08-19T12:22:37.762Z","updated_at":"2025-08-19T12:22:37.762Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016923,"owners_count":26085913,"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-10-13T02:00:06.723Z","response_time":61,"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":["api","woo","woocommerce","wordpress"],"created_at":"2025-10-13T20:51:45.572Z","updated_at":"2025-10-13T20:51:51.652Z","avatar_url":"https://github.com/hiscaler.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"WooCommerce SDK for golang\n==========================\n\n## Docs\n\n### Rest API Docs\n\nhttps://woocommerce.github.io/woocommerce-rest-api-docs/#introduction\n\n## Requirements\n\nTo use the latest version of the REST API you must be using:\n\n- WooCommerce 3.5+.\n- WordPress 4.4+.\n\nPretty permalinks in Settings \u003e Permalinks so that the custom endpoints are supported. Default permalinks will not work.\nYou may access the API over either HTTP or HTTPS, but HTTPS is recommended where possible.\nIf you use ModSecurity and see 501 Method Not Implemented errors,\nsee [this issue](https://github.com/woocommerce/woocommerce/issues/9838) for details.\n\n## Notices\n\nOnly tested in API v3, if you are use v1 or v2,\nplease [Report an issue](https://github.com/hiscaler/woocommerce-go/issues/new).\n\n## Install\n\n```go\ngo get github.com/hiscaler/woocommerce-go\n```\n\n## Config\n\n```json\n{\n  \"debug\": true,\n  \"url\": \"http://127.0.0.1/\",\n  \"version\": \"v3\",\n  \"consumer_key\": \"\",\n  \"consumer_secret\": \"\",\n  \"add_authentication_to_url\": false,\n  \"timeout\": 10,\n  \"verify_ssl\": true\n}\n```\n\n## Usage\n\n### Step 1. Create a new client\n\n```go\n// Read you config\nb, err := os.ReadFile(\"./config/config_test.json\")\nif err != nil {\n    panic(fmt.Sprintf(\"Read config error: %s\", err.Error()))\n}\nvar c config.Config\nerr = json.Unmarshal(b, \u0026c)\nif err != nil {\n    panic(fmt.Sprintf(\"Parse config file error: %s\", err.Error()))\n}\n\nwooClient := NewClient(c)\n```\n\nNow you get a wooCommerce client object, If you want to operate data, please refer second step.\n\n### Step 2. Call special service method\n\n```go\n// Product Query\nparams := ProductsQueryParams{}\nwooClient.Services.Product.All(params)\n```\n\n10 records are returned by default.\n\nIn most cases, you can filter by condition, example:\n\n```go\nparams.SKU = \"NO123\"\nwooClient.Services.Product.All(params)\n```\n\nThe first ten eligible records are returned in this case\n\nAnd you can retrieve one data use One() method.\n\n```go\nproduct, err := wooClient.Services.Product.One(1)\n```\n\n**Note**: If the error type is ErrNotFound, it indicates that the corresponding data is not found. If the error type is\nother error, an error may occur in the call. So you should judge the results to further process your business logic.\n\n## Services\n\nService method name description:\n\n| Method Name | Description        |\n|-------------|--------------------|\n| Create()    | Create a new data  |\n| All()       | Get a data list    |\n| One()       | Get one data       |\n| Delete()    | Delete a data      |\n| Update()    | Update a data      |\n| Batch()     | Batch operate data |\n\n### Coupons\n\nService Name: wooClient.Service.Coupon\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Customers\n\nService Name: wooClient.Service.Customer\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- Downloads\n- One\n- Update\n\n### Order\n\nService Name: wooClient.Service.Order\n\nMethods:\n\n- All\n- Create\n- Delete\n- One\n- Update\n\n### Order Notes\n\nService Name: wooClient.Service.OrderNote\n\nMethods:\n\n- All\n- Create\n- Delete\n- One\n\n### Refunds\n\nService Name: wooClient.Service.OrderRefund\n\nMethods:\n\n- All\n- Create\n- Delete\n- One\n\n### Products\n\nService Name: wooClient.Service.Product\n\nMethods:\n\n- All\n- Create\n- Delete\n- One\n- Update\n\n### Product Variations\n\nService Name: wooClient.Service.ProductVariation\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Product Attributes\n\nService Name: wooClient.Service.ProductAttribute\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Product Attribute Terms\n\nService Name: wooClient.Service.ProductAttributeTerm\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Product Categories\n\nService Name: wooClient.Service.ProductCategory\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Product Shipping Classes\n\nService Name: wooClient.Service.ProductShippingClass\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Product Tags\n\nService Name: wooClient.Service.ProductTag\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Product Reviews\n\nService Name: wooClient.Service.ProductReview\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Report\n\nService Name: wooClient.Service.Report\n\nMethods:\n\n- All\n- CouponTotals\n- CustomerTotals\n- OrderTotals\n- ProductTotals\n- ReviewTotals\n- SalesReports\n- TopSellerReports\n\n### Tax Rates\n\nService Name: wooClient.Service.TaxRate\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Tax Classes\n\nService Name: wooClient.Service.TaxClass\n\nMethods:\n\n- All\n- Create\n- Delete\n\n### Webhooks\n\nService Name: wooClient.Service.Webhook\n\nMethods:\n\n- All\n- Batch\n- Create\n- Delete\n- One\n- Update\n\n### Settings\n\n- Groups\n\nService Name: wooClient.Service.Group\n\nMethods:\n\n### Setting Options\n\n- All\n- One\n- Update\n\n### Payment Gateways\n\nService Name: wooClient.Service.PaymentGateway\n\nMethods:\n\n- All\n- One\n- Update\n\n### Shipping Zones\n\nService Name: wooClient.Service.ShippingZone\n\nMethods:\n\n- All\n- Create\n- Delete\n- One\n- Update\n\n### Shipping Zone Locations\n\nService Name: wooClient.Service.ShippingZoneLocation\n\nMethods:\n\n- All\n- Update\n\n### Shipping Zone Methods\n\nService Name: wooClient.Service.ShippingZoneMethod\n\nMethods:\n\n- All\n- Delete\n- Include\n- One\n- Update\n\n### Shipping Methods\n\nService Name: wooClient.Service.ShippingMethod\n\nMethods:\n\n- All\n- One\n\n### System Status\n\nService Name: wooClient.Service.SystemStatus\n\nMethods:\n\n- All\n\n### System Status Tools\n\nService Name: wooClient.Service.SystemStatusTool\n\nMethods:\n\n- All\n- One\n- Run\n\n### Data\n\nService Name: wooClient.Service.Data\n\nMethods:\n\n- All\n- Continent\n- Continents\n- Countries\n- Country\n- Currencies\n- Currency\n- CurrentCurrency\n\n## Contributing\n\nIf you have any questions or suggestions, you can:\n\n1. [Report an issue](https://github.com/hiscaler/woocommerce-go/issues/new)\n2. Fork it and pull a request\n\nThanks.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiscaler%2Fwoocommerce-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiscaler%2Fwoocommerce-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiscaler%2Fwoocommerce-go/lists"}