1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! The Follows module that handles followers and follows and following
//!
//! # Quickstart with the Following module
//!
//! 1. Use the follow_user function
//! ```no_run
//! use farcaster_rs::{Account, Farcaster};
//!
//! let account: Account = Account::from_mnemonic("mnemonic phrase", None).await?;
//! let farcaster: Farcaster = Farcaster::new("eth provider", account).await?;
//!
//! // Follow a user
//! let follow = farcaster.follow_user_by_username("dwr").await?;
//! let follow = farcaster.follow_user_by_fid(0).await?;
//! let follow = farcaster.follow_user_by_address("0x0000....").await?;
//! ```
//!
//! 2. Use the unfollow_user function
//! ```no_run
//! use farcaster_rs::{Account, Farcaster};
//!
//! let account: Account = Account::from_mnemonic("mnemonic phrase", None).await?;
//! let farcaster: Farcaster = Farcaster::new("eth provider", account).await?;
//!
//! // Unfollow a user
//! let unfollow = farcaster.unfollow_user_by_username("dwr").await?;
//! let unfollow = farcaster.unfollow_user_by_fid(0).await?;
//! let unfollow = farcaster.unfollow_user_by_address("0x0000....").await?;
//! ```
//!
//! //! 3. Use the get_followers function
//! ```no_run
//! use farcaster_rs::{Account, Farcaster};
//!
//! let account: Account = Account::from_mnemonic("mnemonic phrase", None).await?;
//! let farcaster: Farcaster = Farcaster::new("eth provider", account).await?;
//!
//! // Get followers
//! let followers = farcaster.get_followers_by_address("juan", None, None).await?;
//! let followers = farcaster.get_followers_by_fid(0, None, None).await?;
//! let followers = farcaster.get_followers_by_address("0x0000....", None, None).await?;
//! ```
//!
//! //! //! 4. Use the following function
//! ```no_run
//! use farcaster_rs::{Account, Farcaster};
//!
//! let account: Account = Account::from_mnemonic("mnemonic phrase", None).await?;
//! let farcaster: Farcaster = Farcaster::new("eth provider", account).await?;
//!
//! // Get following
//! let following = farcaster.get_following_by_username("jayme", None, None).await?;
//! let following = farcaster.get_following_by_fid(0, None, None).await?;
//! let following = farcaster.get_following_by_address("0x000....", None, None).await?;
//! ```
//!
/// Follow a user
/// Get following
/// Get followers
/// Unfollow a user