-
Notifications
You must be signed in to change notification settings - Fork 232
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
Conversation
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" | ||
) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woot
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) |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
Thanks a lot!!! |
No description provided.