nanato12 / line-bot-sdk-rust Goto Github PK
View Code? Open in Web Editor NEWLINE Messaging API SDK for Rust
Home Page: https://crates.io/crates/line-bot-sdk-rust
License: Apache License 2.0
LINE Messaging API SDK for Rust
Home Page: https://crates.io/crates/line-bot-sdk-rust
License: Apache License 2.0
use of deprecated function `base64::encode`: Use Engine::encode
`#[warn(deprecated)]` on by default
https://github.com/nanato12/line-bot-sdk-rust/blob/develop/src/webhook.rs#L3
Unimplemented rich-menu function ๐ข
https://github.com/nanato12/line-bot-sdk-rust/blob/master/src/bot.rs#L746-L747
Unimplemented flex message structure.
https://github.com/nanato12/line-bot-sdk-rust/blob/master/src/messages/flex_message.rs#L3-L5
Line 225 in a5ca302
Need to use correct endpoint base https://api-data.line.me/v2/bot
as indicated in documentation.
First off, thanks for developing this library. When using it I encountered this problem:
I have some code that looks like this. All info are valid.
The bot.push_message
call will fail with 400.
If I remove the bot.get_profile
call then the bot.push_message
call will work correctly.
let line_id = "UXXXXXXXXXXXXXXXXXXXXX";
let bot = LineBot::new(channel_secret.as_str(), access_token.as_str());
let mut messages: Vec<SendMessageType> = Vec::new();
let res = bot.get_profile(line_id);
let _profile = res.unwrap();
messages.push(SendMessageType::TextMessage(TextMessage {
text: String::from("Pushed"),
emojis: None,
}));
let result = bot.push_message(line_id, messages);
I'm new to rust so I haven't found out why this happens yet.
Seems like a small mistype. I can open a PR, if needed. Enum naming needs to fixed as well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.