{"id":37861444,"url":"https://github.com/meplato/store2-go-client","last_synced_at":"2026-01-16T16:32:16.901Z","repository":{"id":36171735,"uuid":"40475846","full_name":"meplato/store2-go-client","owner":"meplato","description":"Go client for Meplato Store 2","archived":false,"fork":false,"pushed_at":"2024-06-25T12:42:48.000Z","size":238,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-25T14:10:01.290Z","etag":null,"topics":["api","api-client","go","meplato","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meplato.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-08-10T10:01:10.000Z","updated_at":"2024-06-25T12:42:51.000Z","dependencies_parsed_at":"2024-04-05T13:28:14.769Z","dependency_job_id":"924a68c3-29b2-4239-b276-13a50efc96b1","html_url":"https://github.com/meplato/store2-go-client","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/meplato/store2-go-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meplato%2Fstore2-go-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meplato%2Fstore2-go-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meplato%2Fstore2-go-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meplato%2Fstore2-go-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meplato","download_url":"https://codeload.github.com/meplato/store2-go-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meplato%2Fstore2-go-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["api","api-client","go","meplato","rest-api"],"created_at":"2026-01-16T16:32:16.778Z","updated_at":"2026-01-16T16:32:16.866Z","avatar_url":"https://github.com/meplato.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Meplato Store 2 API Go Client\n\n[![Test](https://github.com/meplato/store2-go-client/workflows/Test/badge.svg)](https://github.com/meplato/store2-go-client/actions)\n[![Release](https://github.com/meplato/store2-go-client/workflows/Release/badge.svg)](https://github.com/meplato/store2-go-client/actions)\n\nThis is the Go client for the Meplato Store 2 API. It consists of a library\nto integrate your infrastructure with Meplato suite for suppliers. It also\nhas a command line tool you can use to immediately interact with Meplato Store.\nThe command line tool also illustrates how to write your own clients.\n\n## Prerequisites\n\nYou need at two things to use the Meplato Store 2 API.\n\n1. A login to Meplato Store 2.\n2. An API token.\n\nGet your login by contacting Meplato Supplier Network Services. The API token\nis required to securely communicate with the Meplato Store 2 API. You can\nfind it in the personalization section when logged into Meplato Store.\n\n## Getting started\n\nWe use the command line tool to illustrate how easy it is to get started\nwith Meplato Store. First, we need to clone the repository and build the\ncommand line client:\n\n1. Get the library via: `go get github.com/meplato/store2-go-client`\n2. Set the API token, e.g. via an environment variable:\n   `export STORE2_USER=\u003cyour-api-token\u003e`.\n   If you're an old Unix guy, you can also add a line to your `~/.netrc`\n   file, e.g. `machine store2.meplato.com login \u003cyour-api-token\u003e`; the\n   command line client will happily pick it up without any environment\n   variables.\n3. Build the command line client: `make`\n\nYou should now have an executable binary at `./store`. If you run it, you\ncan see a help page regarding the various commands.\n\nIf you successfully set your API token, either via environment variable or\nvia netrc, you should now be able to run `./store catalogs` and it should\nlist all the catalogs in your Meplato Store.\n\n```bash\n$ ./store catalogs\n4 catalogs found.\n ID  Name                                               Created\n==============================================================================\n  4. Excel-Test                                         2015-07-17\n  3. Demokatalog                                        2015-06-18\n  2. Büromaterial                                       2015-06-18\n  1. Büromaterial                                       2015-06-18\n```\n\n## Using the library\n\nUsing the library is actually quite simple. All functionality is separated\ninto services. So you e.g. have a service to work with catalogs, another\nservice to work with products in a catalog etc. All services need to be\ninitialized with your API token.\n\n```go\nimport (\n\t\"net/http\"\n\t\"log\"\n\n\t\"github.com/meplato/store2-go-client/v2/catalogs\"\n)\n\n...\n\n// Create and initialize your service with your API token\nservice, err := catalogs.New(http.DefaultClient)\nif err != nil {\n  log.Fatal(err)\n}\nservice.User = \"\u003cyour-api-token\u003e\"\n```\n\nNow that you have access to your service, you can set up parameters and\nexecute the service call. For example, the following snippet will print\nthe first 10 catalogs in your Meplato Store, sorted by catalog name.\n\n```go\nres, err := service.Search().Skip(0).Take(10).Sort(\"name\").Do()\nif err != nil {\n\tlog.Fatal(err)\n}\n\nfmt.Printf(\"You have a total of %d catalog(s).\\n\", res.TotalItems)\nfor _, c := range res.Items {\n\tfmt.Printf(\"Catalog with ID=%d has name %q and was created at %v.\\n\",\n\t\tc.ID, c.Name, c.Created.Format(\"2006-01-02\"))\n}\n```\n\nFeel free to read the unit tests for the various usage scenarios of the\nlibrary.\n\n## Running tests\n\nTo run all tests use `go test ./...`\n\n## Documentation\n\nComplete documentation for the Meplato Store 2 API can be found at\n[https://developer.meplato.com/store2](https://developer.meplato.com/store2).\n\n# License\n\nThis software is licensed under the Apache 2 license.\n\n    Copyright (c) 2015 Meplato GmbH \u003chttp://www.meplato.com\u003e\n\n\t\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\t\tyou may not use this file except in compliance with the License.\n\t\tYou may obtain a copy of the License at\n\n\t\t    http://www.apache.org/licenses/LICENSE-2.0\n\n\t\tUnless required by applicable law or agreed to in writing, software\n\t\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\t\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\t\tSee the License for the specific language governing permissions and\n\t\tlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeplato%2Fstore2-go-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeplato%2Fstore2-go-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeplato%2Fstore2-go-client/lists"}