chatwork

ci Rust Documentation Latest Version

A client implementation of Chatwork API.

Example

```rust use chatwork::{v2::rooms::messages, Client};

let client = Client::new(apitoken); let svc = client.v2().rooms().messages(roomid); let messageid = svc.create(&messages::Create { body: "hello", ..Default::default() }).await?; println!("messageid: {:?}", message_id); ```

API

| Method | Path | Client | |--------|-----------------------------------------|--------------------------------------------------------------| | GET | /me | c.v2().me().get() | | GET | /my/status | c.v2().my().status().get() | | GET | /my/tasks | c.v2().my().tasks().list(list) | | GET | /contacts | c.v2().contacts().list() | | GET | /rooms | c.v2().rooms().list() | | POST | /rooms | c.v2().rooms().create(create) | | GET | /rooms/{roomid} | c.v2().rooms().get(roomid) | | PUT | /rooms/{roomid} | c.v2().rooms().update(roomid, update) | | DELETE | /rooms/{roomid} | c.v2().rooms().delete(roomid, delete) | | GET | /rooms/{roomid}/members | c.v2().rooms().members(roomid).list() | | PUT | /rooms/{roomid}/members | c.v2().rooms().members(roomid).update(update) | | GET | /rooms/{roomid}/messages | c.v2().rooms().messages(roomid).list(list) | | POST | /rooms/{roomid}/messages | c.v2().rooms().messages(roomid).create(create) | | GET | /rooms/{roomid}/messages/{messageid} | c.v2().rooms().messages(roomid).get(messageid) | | PUT | /rooms/{roomid}/messages/{messageid} | c.v2().rooms().messages(roomid).update(messageid, update) | | DELETE | /rooms/{roomid}/messages/{messageid} | c.v2().rooms().messages(roomid).delete(messageid) | | PUT | /rooms/{roomid}/messages/read | c.v2().rooms().messages(roomid).read().update(update) | | PUT | /rooms/{roomid}/messages/unread | c.v2().rooms().messages(roomid).unread().update(update) | | GET | /rooms/{roomid}/tasks | c.v2().rooms().tasks(roomid).list(list) | | POST | /rooms/{roomid}/tasks | c.v2().rooms().tasks(roomid).create(create) | | GET | /rooms/{roomid}/tasks/{taskid} | c.v2().rooms().tasks(roomid).get(taskid) | | PUT | /rooms/{roomid}/tasks/{taskid}/status | c.v2().rooms().tasks(roomid).status(taskid).update(update) | | GET | /rooms/{roomid}/files | c.v2().rooms().files(roomid).list(list) | | POST | /rooms/{roomid}/files | c.v2().rooms().files(roomid).create(create) | | GET | /rooms/{roomid}/files/{fileid} | c.v2().rooms().files(roomid).get(fileid, get) | | GET | /rooms/{roomid}/link | c.v2().rooms().link(roomid).get() | | POST | /rooms/{roomid}/link | c.v2().rooms().link(roomid).create(create) | | PUT | /rooms/{roomid}/link | c.v2().rooms().link(roomid).update(update) | | DELETE | /rooms/{roomid}/link | c.v2().rooms().link(roomid).delete() | | GET | /incomingrequests | c.v2().incomingrequests().list() | | PUT | /incomingrequests/{requestid} | c.v2().incomingrequests().update(requestid) | | DELETE | /incomingrequests/{requestid} | c.v2().incomingrequests().delete(requestid) |

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.