Commit graph

13 commits

Author SHA1 Message Date
Jack
130f9cfc4d api sessions
-user starts a httpauthsession with an api key and name
-user initializes jsonrpc hmac secret to sha256 of session id
-server sends new random hmac secret after each api call

-a user without an authenticated session will get a authorization error
2016-09-20 16:58:30 -04:00
Jack
add163a092 move get_params to own function, add some tests 2016-09-15 22:20:00 -04:00
Jack
7b84d9b10a handle no params 2016-09-15 15:04:42 -04:00
Jack
e9a1dbca4b fix windows cli
make cli easier to use on windows by converting keyword args to json

cli now accepts commands like:

lbrynet-cli resolve_name name=one

as well as:

lbrynet-cli resolve_name ‘{“name”: “one”}’
2016-09-15 14:47:32 -04:00
Alex Grintsvayg
659563f27a fix indent 2016-09-08 13:41:11 -04:00
Alex Grintsvayg
cbd8a68d0f print actual json 2016-09-08 13:40:43 -04:00
Sonata Green
31b9d22649 spelling fix 2016-08-19 21:12:02 -05:00
Job Evers-Meltzer
fccdf32c9f Remove all unused imports; add check to pylint 2016-08-08 15:42:35 -05:00
kimihiro64
ee71a03f96 Revert to 2 params as isinstance cannot support 3+ (#69)
* Revert to 2 params as isinstance cannot support 3+

* Use basestring for maximum efficiency
2016-07-13 22:44:02 -05:00
Jack
404412a950 return publish error message 2016-07-11 21:57:34 -04:00
Jack
9277c3c674 add help for when things go wrong 2016-07-06 03:02:55 -04:00
Jack
34b1259dc6 move check for if daemon is running to inside of function 2016-07-06 02:20:18 -04:00
Jack
257e38de12 add command line wrapper for lbrynet-daemon calls 2016-07-06 02:17:38 -04:00