{"id":28491549,"url":"https://github.com/line/blockchain-sample-link-cinema","last_synced_at":"2026-03-09T14:06:10.815Z","repository":{"id":62665730,"uuid":"281834155","full_name":"line/blockchain-sample-link-cinema","owner":"line","description":"A sample service of LINE Blockchain, demonstrating how to utilize LINE Blockchain Developers and LINE BITMAX Wallet.","archived":false,"fork":false,"pushed_at":"2023-03-20T22:48:14.000Z","size":41,"stargazers_count":22,"open_issues_count":1,"forks_count":7,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-08T02:14:18.141Z","etag":null,"topics":["blockchain","blockchain-demos"],"latest_commit_sha":null,"homepage":"https://docs-blockchain.line.biz/sample-services/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/line.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-07-23T02:49:53.000Z","updated_at":"2025-06-07T11:03:35.000Z","dependencies_parsed_at":"2025-07-08T01:32:07.038Z","dependency_job_id":"3140703f-cc1d-4115-b4eb-cb278d7293d8","html_url":"https://github.com/line/blockchain-sample-link-cinema","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/line/blockchain-sample-link-cinema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fblockchain-sample-link-cinema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fblockchain-sample-link-cinema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fblockchain-sample-link-cinema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fblockchain-sample-link-cinema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/line","download_url":"https://codeload.github.com/line/blockchain-sample-link-cinema/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/line%2Fblockchain-sample-link-cinema/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30297910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T13:46:43.843Z","status":"ssl_error","status_checked_at":"2026-03-09T13:46:42.821Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["blockchain","blockchain-demos"],"created_at":"2025-06-08T08:07:42.696Z","updated_at":"2026-03-09T14:06:10.797Z","avatar_url":"https://github.com/line.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LINK Cinema sample service\n \nLINK Cinema is a sample service of LINE Blockchain, demonstrating how to utilize LINE Blockchain Developers and BITMAX Wallet. It's an API server implemented using [Gin](https://github.com/gin-gonic/gin), a web framework written in Go.\n \nVisit [LINE Blockchain Docs](https://docs.blockchain.line.me/sample-services/Link-cinema) for more details.\n \n## Development environment\n### Language\n* Go 1.13+\n### Back-end\n* Gin\n \n## Getting started\n### Setting up the environment\nYou need Go 1.13 or higher to build the source code. Download and install the required version from [Go Downloads](https://golang.org/dl/).\n \nLINK Cinema server brings the information of LINE Blockchain Developers from a separate configuration file written in TOML. The structure of the configuration object is as follows:\n \n```\ntype APIConfig struct {\n    LBDAPIEndpoint       string // Real API server address of LINE Blockchain Developers\n    LINEAPIEndpoint      string // Real API server address of LINE\n    LINEAccessEndpoint   string // Real API server address of LINE Access\n    Endpoint             string // Service server address\n    WalletAddress        string // Address of the service wallet\n    WalletSecret         string // Secret key of the service wallet\n    APIKey               string // API key of the service issued by LINE Blockchain Developers\n    APISecret            string // API secret of the service issued by LINE Blockchain Developers\n    ChannelID            string // ID of the channel issued by LINE Developers\n    ChannelSecret        string // Secret key of the channel issued by LINE Developers\n    ServiceContractID    string // Contract ID of the service token which is used as membership rewards points\n    ItemContractID       string // Contract ID of the item tokens which are used as movie tickets or discount coupons\n    FungibleTokenType    string // Token type of the non-fungible item tokens which are used as movie tickets or discount coupons\n    NonFungibleTokenType string // Token type of the fungible item token which is used as movie tickets\n    UserID               string // User ID of the service user's LINE account\n}\n```\n \nLINK Cinema server reads the configuration file through the environment variable, `CONFIG_PATH`, during runtime. Designate the path of the configuration file with `CONFIG_PATH`.\n \n```bash\n$ export CONFIG_PATH={config toml file path}\n```\n \n### Building source code\n \n```bash\n$ make\n```\n \n### Running the LINK Cinema server\n \n```bash\n$ cinema\n```\n \nTo check out the API endpoints provided by the LINK Cinema server, open the API reference file created by Swagger as follows:\n \n```bash\n$ {endpoint}/swagger/index.html\n```\n \n## How to contribute\n \nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more details.\n \n## License\n \n```\nCopyright 2020 LINE Corporation\n \nLINE Corporation licenses this file to you under the Apache License,\nversion 2.0 (the \"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at:\n \n  https://www.apache.org/licenses/LICENSE-2.0\n \nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\nWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\nLicense for the specific language governing permissions and limitations\nunder the License.\n```\n \nSee [LICENSE](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fblockchain-sample-link-cinema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fline%2Fblockchain-sample-link-cinema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fline%2Fblockchain-sample-link-cinema/lists"}