{"repo":"line/line-bot-sdk-go","free":true,"listed":false,"github":"https://github.com/line/line-bot-sdk-go","clone":"git clone https://github.com/line/line-bot-sdk-go.git","description":"LINE Messaging API SDK for Go","language":"Go","stars":955,"topics":["line","bot","sdk","go","golang","linebot"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"LINE Messaging API SDK for Go Introduction The LINE Messaging API SDK for Go makes it easy to develop bots using LINE Messaging API, and you can create a sample bot within minutes. Documentation See the official API documentation for more information. - English: https://developers.line.biz/en/docs/messaging-api/overview/ - Japanese: https://developers.line.biz/ja/docs/messaging-api/overview/ Requirements This library requires Go 1.25 or later. Installation ## Import all packages in your code ## Configuration ## Configuration with http.Client ### Every client application allows configuration with WithHTTPClient and WithEndpoint. (For Blob client, configurations WithBlobHTTPClient and WithBlobEndpoint are also available.) Getting Started ## The LINE Messaging API primarily utilizes the JSON data format. To parse the incoming HTTP requests, the webhook.ParseRequest() method is provided. This method reads the http.Request content and returns a slice of pointers to Event Objects. The LINE Messaging API is capable of handling various event types. The Messaging API SDK automatically unmarshals these events into respective classes like webhook.MessageEvent , webhook.FollowEvent , and so on. You can easily check the type of the event and respond accordingly using a switch statement as shown below: We provide code examples. - EchoBot - a simple echo bot - KitchenSink - a bot that handles many types of events - EchoBotHandler - A simple bot that automatically verifies signatures and onl","default_branch":null,"files":null,"tree":[],"storefront":"/r/line","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/line/line-bot-sdk-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}