-
Notifications
You must be signed in to change notification settings - Fork 244
Fix example and remove false deprecated message #374
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
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
| ) | ||
|
|
||
| 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...
| ) | ||
|
|
||
| // 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.