kuon icon indicating copy to clipboard operation
kuon copied to clipboard

Thinking about naming, it might be better to use TwitterAPIClient

Open hppRC opened this issue 5 years ago • 2 comments

pub struct TwitterClient {}

pub struct TwitterAPIClient {}

hppRC avatar May 29 '20 06:05 hppRC

example

before

let client = TwitterClient::new()

after

let api = TwitterAPIClient::new()

hppRC avatar May 29 '20 06:05 hppRC

Now

let api = kuon::TwitterAPI::new(...).await?;

kuon::TwitterAPI::new() is an async function because the API for obtaining the bearer token is called when the instance is created.

hppRC avatar May 31 '20 17:05 hppRC