Commit Graph

42 Commits

Author SHA1 Message Date
Mahesh Bansod a1d3c64765 Caching the ServerInformation for CLI 2021-11-07 20:27:38 +05:30
Mahesh Bansod bb5763deb0 put client init code in utils 2021-11-07 15:27:17 +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 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 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 0aa932972a Added timeline methods: retrieve_feed, compose, delete 2021-10-29 10:20:25 +05:30
Mahesh Bansod f2283f236c Ask to confirm password for register + removed unnecessary clone 2021-10-24 02:49:51 +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 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 f42d61beee Added `network.get_profile` and `Profile` + fix: evaluate result before sending request for `account.set_profile_picture` 2021-10-19 21:57:03 +05:30
Mahesh Bansod 12443b53ba Added `set_profile_picture` 2021-10-19 21:34:39 +05:30
Mahesh Bansod bbea7cda91 Converted some crates to modules 2021-10-18 21:29:28 +05:30
Mahesh Bansod 9ae31ee544 rename all crates to add prefix socialvoid_ 2021-10-18 20:44:34 +05:30
Mahesh Bansod ac7482b4ac Resolve CDN server url from ServerInformation 2021-10-16 12:08:52 +05:30
Mahesh Bansod 608f98b644 Added method to delete a session from the session list 2021-10-10 14:41:27 +05:30
Mahesh Bansod be477221fd Added get session to client 2021-10-10 14:25:25 +05:30
Mahesh Bansod 1fa29ae68f Storing authenticated flag in session 2021-10-10 13:28:26 +05:30
Mahesh Bansod 38f9f7a239 added methods to get terms of service, accept them, register, authenticate, log out, and get_me to client. + test to check peer is correct 2021-10-03 22:03:26 +05:30
Mahesh Bansod 922dbfb8ba fix: not returning the session established object - setting it in `established` field of `SessionHolder` now. 2021-09-30 21:56:00 +05:30
Mahesh Bansod c33955b515 Client now uses SessionHolder instead of SessionEstablished directly + Refactored session challenge code 2021-09-19 21:01:13 +05:30
Mahesh Bansod 58698e5342 Added Client with methods to load, save, establish sessions 2021-09-18 17:07:48 +05:30