Skip to content

Commit

Permalink
add 'import' statement
Browse files Browse the repository at this point in the history
  • Loading branch information
tokuhirom committed Oct 30, 2023
1 parent 4a7c4d5 commit 01d2616
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $ go get -u github.com/line/line-bot-sdk-go/v7/linebot

```go
import (
"github.com/line/line-bot-sdk-go/v7/linebot"
"github.com/line/line-bot-sdk-go/v7/linebot/messaging_api"
)

func main() {
Expand Down Expand Up @@ -61,6 +61,10 @@ bot, err := messaging_api.NewMessagingApiAPI(
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.

```go
import (
"github.com/line/line-bot-sdk-go/v7/linebot/webhook"
)

cb, err := webhook.ParseRequest(req)
if err != nil {
// Handle any errors that occur.
Expand Down

0 comments on commit 01d2616

Please sign in to comment.