Coder Social home page Coder Social logo

nanato12 / line-bot-sdk-rust Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 13.0 457 KB

LINE Messaging API SDK for Rust

Home Page: https://crates.io/crates/line-bot-sdk-rust

License: Apache License 2.0

Rust 99.99% Makefile 0.01%
line bot sdk rust line-bot line-bot-sdk messaging-api linebot

line-bot-sdk-rust's Introduction

Hi ๐Ÿ‘‹, I'm nanato12

github views github followers Twitter (@nanato12_dev) qiita posts qiita contributions

Skills (Order by years of experience)

Programming Language

python php go rust c ruby

Web Framework

laravel echo flask django actix_web

Database

mysql postgresql redis

Cloud Service

googlecloud amazonwebservices azure

DevOps

docker git github githubactions githubcodespaces firebase gitlab codecov algolia

Tool

vscode goland postman swagger openapi

GitHub Summaries

https://github-profile-summary-cards.vercel.app/api/cards/profile-details?username=nanato12&theme=discord_old_blurple https://github-profile-summary-cards.vercel.app/api/cards/repos-per-language?username=nanato12&theme=discord_old_blurple&exclude= https://github-profile-summary-cards.vercel.app/api/cards/most-commit-language?username=nanato12&theme=discord_old_blurple&exclude= https://github-profile-trophy.vercel.app/?username=nanato12&theme=nord

OSS Contributions

line-bot-sdk-python line-bot-sdk-php line-bot-sdk-go line-bot-sdk-nodejs line-openapi

line-bot-sdk-rust's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

line-bot-sdk-rust's Issues

Failed to get_profile and then push_message

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.