Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix example and remove false deprecated message #374

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

Yang-33
Copy link
Contributor

@Yang-33 Yang-33 commented Oct 31, 2023

No description provided.

Comment on lines +31 to +43
import (
"github.com/line/line-bot-sdk-go/v7/linebot"
"github.com/line/line-bot-sdk-go/v7/linebot/channel_access_token"
"github.com/line/line-bot-sdk-go/v7/linebot/httphandler"
"github.com/line/line-bot-sdk-go/v7/linebot/insight"
"github.com/line/line-bot-sdk-go/v7/linebot/liff"
"github.com/line/line-bot-sdk-go/v7/linebot/manage_audience"
"github.com/line/line-bot-sdk-go/v7/linebot/messaging_api"
"github.com/line/line-bot-sdk-go/v7/linebot/module"
"github.com/line/line-bot-sdk-go/v7/linebot/module_attach"
"github.com/line/line-bot-sdk-go/v7/linebot/shop"
"github.com/line/line-bot-sdk-go/v7/linebot/webhook"
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for easy copy & paste

@@ -65,7 +83,7 @@ import (
"github.com/line/line-bot-sdk-go/v7/linebot/webhook"
)

cb, err := webhook.ParseRequest(req)
cb, err := webhook.ParseRequest(os.Getenv("LINE_CHANNEL_SECRET"), req)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually channel secret is necessary

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woot

Comment on lines +106 to +114
We provide code [examples](./examples).
- [EchoBot](./examples/echo_bot/server.go)
- a simple echo bot
- [KitchenSink](./examples/kitchensink/server.go)
- a bot that handles many types of events
- [EchoBotHandler](./examples/echo_bot_handler/server.go)
- [DeliveryHelper](./examples/delivery_helper/main.go)
- [InsightHelper](./examples/insight_helper/main.go)
- [RichmenuHelper](./examples/richmenu_helper/main.go)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I often hear SDK beginner doesn't know where is sample...

@@ -15,7 +15,6 @@ var (
)

// ParseRequest func
// Deprecated: Use OpenAPI based classes instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

@tokuhirom
Copy link
Member

Thanks a lot!!!

@tokuhirom tokuhirom merged commit 8497d18 into line:master Oct 31, 2023
5 checks passed
@Yang-33 Yang-33 deleted the minor-patch branch October 31, 2023 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants