Commit Graph

111 Commits

Author SHA1 Message Date
Mahesh Bansod dc059b947d fix: create new session when the current expires 2021-11-19 18:56:28 +05:30
Mahesh Bansod a1d3c64765 Caching the ServerInformation for CLI 2021-11-07 20:27:38 +05:30
Mahesh Bansod 4003dfe246 Added method to specify host of raw client 2021-11-07 18:49:15 +05:30
Mahesh Bansod 2fcfbe9e67 Moved Display impl from types to cli crate. added pager to feed. 2021-11-07 18:29:14 +05:30
Mahesh Bansod 31faf60285 Added Network Errors 2021-11-07 15:33:22 +05:30
Mahesh Bansod bb5763deb0 put client init code in utils 2021-11-07 15:27:17 +05:30
Mahesh Bansod 1e293c67aa Added delete-post subcommand 2021-11-07 13:51:44 +05:30
Mahesh Bansod 6fa77b8812 added subcommands `feed`, `get-post`, `like`, `unlike` 2021-11-06 03:46:27 +05:30
Mahesh Bansod 90586019df Added `timeline.{get_post, get_replies, get_quotes, like, unlike, reply, quote, repost, get_reposted_peers}` 2021-11-06 03:45:52 +05:30
Mahesh Bansod 7d3018cf2d Implemented Display trait for `Post` and changed type of timestamp to u64 2021-11-06 03:44:09 +05:30
Mahesh Bansod 50d94160af Replaced `get-profile` command with `profile` to get any peers profile 2021-11-05 17:11:38 +05:30
Mahesh Bansod a038b6f7da Added methods + cli commands for `network.{get_followers,get_following,follow_peer,unfollow_peer}` 2021-11-05 17:03:06 +05:30
Mahesh Bansod c95c71c1bd Added InvalidPeerInput Validation error case for Display trait + removed multisession errors from SocialVoidError 2021-11-05 16:42:57 +05:30
Mahesh Bansod 59847a5032 Made get-peer example more readable and updated readme 2021-11-03 12:54:59 +05:30
Mahesh Bansod acf8eadf47 Switched CLI to use single session + made it work with the new restructured api 2021-11-03 12:41:38 +05:30
Mahesh Bansod 07b813dfa8 Added `serialize` on `SVSessionMethods` 2021-11-03 12:39:40 +05:30
Mahesh Bansod 9619e63361 Added session in account to use `session_identification` 2021-11-03 12:22:55 +05:30
Mahesh Bansod 824747041b Added methods to serialize/deserialize the session w bincode 2021-11-02 20:57:54 +05:30
Mahesh Bansod b37ffd766e Made timeline methods use the new structure too 2021-11-02 16:33:19 +05:30
Mahesh Bansod 02559e2fbc made session, network and help have the new structure. + removed cli temporarily from the workspace 2021-11-02 14:09:15 +05:30
Mahesh Bansod 370cc97f61 Changed `Rc` to `Arc` to support `async` 2021-10-30 22:48:21 +05:30
Mahesh Bansod 7549d90d5d Merge branch 'master' into restructure-api 2021-10-30 22:22:16 +05:30
Mahesh Bansod 09fb0b1798 help module restructure 2021-10-30 22:21:59 +05:30
Mahesh Bansod 0ff1cbbad4 Fix: bug in post creation test 2021-10-30 22:17:45 +05:30
Mahesh Bansod 72c5a8976b have compose_post use a string reference instead of `String` 2021-10-30 16:48:11 +05:30
Mahesh Bansod bebe57ac8e Added methods for compose and delete along with test 2021-10-30 02:40:26 +05:30
Mahesh Bansod 7e7044f5a7 made Post public 2021-10-30 02:37:45 +05:30
Mahesh Bansod 0aa932972a Added timeline methods: retrieve_feed, compose, delete 2021-10-29 10:20:25 +05:30
Mahesh Bansod 351fe65450 Made CLI subcommands use structopt's subcommands options 2021-10-27 19:06:57 +05:30
Mahesh Bansod f2283f236c Ask to confirm password for register + removed unnecessary clone 2021-10-24 02:49:51 +05:30
Mahesh Bansod 7419d0eee6 Added config command to set session and see current session 2021-10-24 02:40:15 +05:30
Mahesh Bansod d29dc36e22 Updated `ServerInformation` 2021-10-24 02:39:27 +05:30
Mahesh Bansod a5fabda8eb fix: session update on new login/register 2021-10-24 01:56:16 +05:30
Mahesh Bansod f0d24ec03b Added methods to change session and get current session index 2021-10-24 00:38:33 +05:30
Mahesh Bansod 59d9532766 added get peer example + updated readme with it 2021-10-23 23:39:26 +05:30
Mahesh Bansod 19ef4c4d03 Clippy stuff 2021-10-23 21:46:39 +05:30
Mahesh Bansod b220ea7b65 changed RelationshipType enum to camel case 2021-10-23 21:32:26 +05:30
Mahesh Bansod aa59b3c9e3 Update readme example 2021-10-23 21:27:24 +05:30
Mahesh Bansod c782d6166b current_session will be managed by clientlib itself instead of the CLI. 2021-10-23 21:26:06 +05:30
Mahesh Bansod 27aa49685b Wrapper around raw errors to support client errors 2021-10-23 19:52:08 +05:30
Mahesh Bansod bc4e8c2216 Added follow peer method 2021-10-23 18:48:32 +05:30
Mahesh Bansod 48534a8d64 removed session file from log in test, since log out will expire the session soon anyway 2021-10-23 03:14:04 +05:30
Mahesh Bansod 359bf1c131 fix: not authenticated test made better + fixed 2021-10-23 03:07:10 +05:30
Mahesh Bansod 8811df7323 Fix: Give log out method `session_identification` properly 2021-10-23 02:09:33 +05:30
Mahesh Bansod cf818dd914 fix: session_challenge test py file path 2021-10-23 01:58:28 +05:30
Mahesh Bansod deecab0321 Added ResolvePeer, UnfollowPeer, RelationshipType 2021-10-23 01:51:31 +05:30
Mahesh Bansod 9f772cf3a6 Made a better readme 2021-10-23 00:48:12 +05:30
Mahesh Bansod f10a43ba2e Added `get-profile` command + implemented Display trait for Profile 2021-10-21 22:06:27 +05:30
Mahesh Bansod dc2eff4312 Added `MyFriendlyError` for the CLI. 2021-10-20 21:13:45 +05:30
Mahesh Bansod 56d0a7a3a6 Added `set-profile` with `pic` 2021-10-20 20:50:13 +05:30