This website requires JavaScript.
dc059b947d
fix: create new session when the current expires
master
Mahesh Bansod
2021-11-19 18:56:28 +0530
a1d3c64765
Caching the ServerInformation for CLI
Mahesh Bansod
2021-11-07 20:27:38 +0530
4003dfe246
Added method to specify host of raw client
Mahesh Bansod
2021-11-07 18:49:15 +0530
2fcfbe9e67
Moved Display impl from types to cli crate. added pager to feed.
Mahesh Bansod
2021-11-07 18:29:14 +0530
31faf60285
Added Network Errors
Mahesh Bansod
2021-11-07 15:33:22 +0530
bb5763deb0
put client init code in utils
Mahesh Bansod
2021-11-07 15:27:17 +0530
1e293c67aa
Added delete-post subcommand
Mahesh Bansod
2021-11-07 13:51:44 +0530
6fa77b8812
added subcommands `feed`, `get-post`, `like`, `unlike`
Mahesh Bansod
2021-11-06 03:46:27 +0530
90586019df
Added `timeline.{get_post, get_replies, get_quotes, like, unlike, reply, quote, repost, get_reposted_peers}`
Mahesh Bansod
2021-11-06 03:45:52 +0530
7d3018cf2d
Implemented Display trait for `Post` and changed type of timestamp to u64
Mahesh Bansod
2021-11-06 03:44:09 +0530
50d94160af
Replaced `get-profile` command with `profile` to get any peers profile
Mahesh Bansod
2021-11-05 17:11:38 +0530
a038b6f7da
Added methods + cli commands for `network.{get_followers,get_following,follow_peer,unfollow_peer}`
Mahesh Bansod
2021-11-05 17:03:06 +0530
c95c71c1bd
Added InvalidPeerInput Validation error case for Display trait + removed multisession errors from SocialVoidError
Mahesh Bansod
2021-11-05 16:42:57 +0530
59847a5032
Made get-peer example more readable and updated readme
Mahesh Bansod
2021-11-03 12:54:59 +0530
acf8eadf47
Switched CLI to use single session + made it work with the new restructured api
Mahesh Bansod
2021-11-03 12:41:38 +0530
07b813dfa8
Added `serialize` on `SVSessionMethods`
Mahesh Bansod
2021-11-03 12:39:40 +0530
9619e63361
Added session in account to use `session_identification`
Mahesh Bansod
2021-11-03 12:22:55 +0530
824747041b
Added methods to serialize/deserialize the session w bincode
Mahesh Bansod
2021-11-02 20:57:54 +0530
b37ffd766e
Made timeline methods use the new structure too
Mahesh Bansod
2021-11-02 16:33:19 +0530
02559e2fbc
made session, network and help have the new structure. + removed cli temporarily from the workspace
Mahesh Bansod
2021-11-02 14:09:15 +0530
370cc97f61
Changed `Rc` to `Arc` to support `async`
Mahesh Bansod
2021-10-30 22:48:21 +0530
7549d90d5d
Merge branch 'master' into restructure-api
Mahesh Bansod
2021-10-30 22:22:16 +0530
09fb0b1798
help module restructure
Mahesh Bansod
2021-10-30 22:21:59 +0530
0ff1cbbad4
Fix: bug in post creation test
Mahesh Bansod
2021-10-30 22:17:45 +0530
72c5a8976b
have compose_post use a string reference instead of `String`
Mahesh Bansod
2021-10-30 16:48:11 +0530
bebe57ac8e
Added methods for compose and delete along with test
Mahesh Bansod
2021-10-30 02:40:26 +0530
7e7044f5a7
made Post public
Mahesh Bansod
2021-10-30 02:37:45 +0530
0aa932972a
Added timeline methods: retrieve_feed, compose, delete
Mahesh Bansod
2021-10-29 10:20:25 +0530
351fe65450
Made CLI subcommands use structopt's subcommands options
Mahesh Bansod
2021-10-27 19:06:57 +0530
f2283f236c
Ask to confirm password for register + removed unnecessary clone
Mahesh Bansod
2021-10-24 02:49:51 +0530
7419d0eee6
Added config command to set session and see current session
Mahesh Bansod
2021-10-24 02:40:15 +0530
d29dc36e22
Updated `ServerInformation`
Mahesh Bansod
2021-10-24 02:39:27 +0530
a5fabda8eb
fix: session update on new login/register
Mahesh Bansod
2021-10-24 01:56:16 +0530
f0d24ec03b
Added methods to change session and get current session index
Mahesh Bansod
2021-10-24 00:38:33 +0530
59d9532766
added get peer example + updated readme with it
Mahesh Bansod
2021-10-23 23:39:26 +0530
19ef4c4d03
Clippy stuff
Mahesh Bansod
2021-10-23 21:46:39 +0530
b220ea7b65
changed RelationshipType enum to camel case
Mahesh Bansod
2021-10-23 21:32:26 +0530
aa59b3c9e3
Update readme example
Mahesh Bansod
2021-10-23 21:27:24 +0530
c782d6166b
current_session will be managed by clientlib itself instead of the CLI.
Mahesh Bansod
2021-10-23 21:26:06 +0530
27aa49685b
Wrapper around raw errors to support client errors
Mahesh Bansod
2021-10-23 19:52:08 +0530
bc4e8c2216
Added follow peer method
Mahesh Bansod
2021-10-23 18:48:32 +0530
48534a8d64
removed session file from log in test, since log out will expire the session soon anyway
Mahesh Bansod
2021-10-23 03:14:04 +0530
359bf1c131
fix: not authenticated test made better + fixed
Mahesh Bansod
2021-10-23 03:07:10 +0530
8811df7323
Fix: Give log out method `session_identification` properly
Mahesh Bansod
2021-10-23 02:09:33 +0530
cf818dd914
fix: session_challenge test py file path
Mahesh Bansod
2021-10-23 01:58:28 +0530
deecab0321
Added ResolvePeer, UnfollowPeer, RelationshipType
Mahesh Bansod
2021-10-23 01:51:31 +0530
9f772cf3a6
Made a better readme
Mahesh Bansod
2021-10-23 00:48:12 +0530
f10a43ba2e
Added `get-profile` command + implemented Display trait for Profile
Mahesh Bansod
2021-10-21 22:06:27 +0530
dc2eff4312
Added `MyFriendlyError` for the CLI.
Mahesh Bansod
2021-10-20 21:13:45 +0530
56d0a7a3a6
Added `set-profile` with `pic`
Mahesh Bansod
2021-10-20 20:50:13 +0530
605b23aff1
Fix: check if the vector for sessions is empty and create a session if so
Mahesh Bansod
2021-10-20 20:49:38 +0530
f42d61beee
Added `network.get_profile` and `Profile` + fix: evaluate result before sending request for `account.set_profile_picture`
Mahesh Bansod
2021-10-19 21:57:03 +0530
12443b53ba
Added `set_profile_picture`
Mahesh Bansod
2021-10-19 21:34:39 +0530
01c55385b1
SessionIdentification derives Clone now
Mahesh Bansod
2021-10-19 21:32:14 +0530
bbea7cda91
Converted some crates to modules
Mahesh Bansod
2021-10-18 21:29:28 +0530
9ae31ee544
rename all crates to add prefix socialvoid_
Mahesh Bansod
2021-10-18 20:44:34 +0530
28448a715f
Added some validation error enum values
Mahesh Bansod
2021-10-16 12:12:59 +0530
ac7482b4ac
Resolve CDN server url from ServerInformation
Mahesh Bansod
2021-10-16 12:08:52 +0530
5c2a492a2c
removed some unnecessary let bindings
Mahesh Bansod
2021-10-16 11:54:28 +0530
328b582088
Streaming the file instead of sending all the bytes at once
Mahesh Bansod
2021-10-16 11:52:04 +0530
59563f212f
Allow changing cdn url by client
Mahesh Bansod
2021-10-16 11:47:18 +0530
d3e48e024f
Clippy suggestions - redundant field name, unnecessary cast, empty instead of len zero check, unnecessary let binding
Mahesh Bansod
2021-10-15 20:41:55 +0530
843a1a6d9c
lazy evaluation by adding closures i.e. `*_or(` to `*_or_else(|_?|` wherever possible
Mahesh Bansod
2021-10-15 20:37:17 +0530
60a4f6966d
Default implementation for BatchRequestBuilder
Mahesh Bansod
2021-10-15 20:33:12 +0530
2f50417edd
Added cdn stuff + made Document public + sent SessionIdentification to types crate
Mahesh Bansod
2021-10-15 20:29:55 +0530
e156ed11c8
Updated binary name to `socialvoid-cli` & updated README
Mahesh Bansod
2021-10-10 19:16:07 +0530
fe7e5466e4
Added Register subcommand
Mahesh Bansod
2021-10-10 15:20:02 +0530
1cab541f43
Removed `display_picture_sizes` from Peer
Mahesh Bansod
2021-10-10 15:19:14 +0530
5cc26a4a2c
Made HelpDocument completely public and added method to get the text
Mahesh Bansod
2021-10-10 14:55:15 +0530
6e343c1d79
Refactored + delete a session if expired or not found
Mahesh Bansod
2021-10-10 14:41:47 +0530
608f98b644
Added method to delete a session from the session list
Mahesh Bansod
2021-10-10 14:41:27 +0530
be477221fd
Added get session to client
Mahesh Bansod
2021-10-10 14:25:25 +0530
fc30e42d17
Added basic CLI - login, get_me
Mahesh Bansod
2021-10-10 13:35:48 +0530
1fa29ae68f
Storing authenticated flag in session
Mahesh Bansod
2021-10-10 13:28:26 +0530
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
Mahesh Bansod
2021-10-03 22:03:26 +0530
38f7fc5fcf
fix: send session_identification key too in `network.get_me`
Mahesh Bansod
2021-10-03 21:38:41 +0530
ce0c689d85
made the peer type completely public
Mahesh Bansod
2021-10-03 21:38:07 +0530
dde53e05b7
now session'saccept tos isn't async and doesnt return a result. made `RegisterRequest` public
Mahesh Bansod
2021-10-03 21:21:39 +0530
14ee098a3c
added `network.get_me`
Mahesh Bansod
2021-10-03 21:20:24 +0530
180d047509
made helpdocument's id public + added method to accept terms of service
Mahesh Bansod
2021-10-01 22:47:34 +0530
99c4b3d15a
TermsOfServiceNotAgreed error if terms of service was not fetched
Mahesh Bansod
2021-10-01 22:28:57 +0530
bf90db3fdc
created a clienterror enum for handling client specific errors instead of using a simple string
Mahesh Bansod
2021-10-01 21:46:31 +0530
1b328dabf6
added test for session challenge by comparing the answer from the python script
Mahesh Bansod
2021-10-01 21:44:09 +0530
003735587e
added batch request builder
Mahesh Bansod
2021-09-30 23:13:44 +0530
bb1786b359
some documentation + reqwest err from method text changed
Mahesh Bansod
2021-09-30 22:55:58 +0530
689097111e
`generate_id` put in mod utils
Mahesh Bansod
2021-09-30 22:52:22 +0530
f919e64a46
added `send_notification` for jsonrpc2 client (notification: request with no `id`)
Mahesh Bansod
2021-09-30 22:48:38 +0530
d54553786e
refactored jsonrpc2 client
Mahesh Bansod
2021-09-30 22:41:40 +0530
8d036d2db8
fix: use the rightmost digits instead of leftmost in the str(binary) in `hotp`
Mahesh Bansod
2021-09-30 21:56:47 +0530
922dbfb8ba
fix: not returning the session established object - setting it in `established` field of `SessionHolder` now.
Mahesh Bansod
2021-09-30 21:56:00 +0530
ab18bd8cc4
added network method `get_me`
Mahesh Bansod
2021-09-30 21:50:03 +0530
ff96accc3e
jsonrpc2 client uses a random ID fr now + displaying the request in test
Mahesh Bansod
2021-09-22 20:47:33 +0530
c33955b515
Client now uses SessionHolder instead of SessionEstablished directly + Refactored session challenge code
Mahesh Bansod
2021-09-19 21:01:13 +0530
01daa4d2ea
Added `answer_challenge` method to answer challenges for methods requiring SessionIdentification
Mahesh Bansod
2021-09-19 20:42:42 +0530
b7c93d535e
Added clienterror in errors
Mahesh Bansod
2021-09-19 20:34:39 +0530
c1a711cb52
Added session.register method and dummy sesh identification
Mahesh Bansod
2021-09-19 19:50:14 +0530
547f453e0b
derive Debug for peer and related types
Mahesh Bansod
2021-09-19 16:43:45 +0530
8fb62b0f07
Made a separate crate for types + Added Peer, Document and related structs
Mahesh Bansod
2021-09-19 16:30:53 +0530
1386a9f8d4
added authentication errors + fixed formatting in jsonrpc2-client
Mahesh Bansod
2021-09-19 16:13:39 +0530
ce0d93b4dd
Did clippy suggestions - enum variant names for error variant, check for range with contains for error ranges
Mahesh Bansod
2021-09-19 16:01:12 +0530