From e158d9aafddd744839add39423e18068e62c86d1 Mon Sep 17 00:00:00 2001 From: Fillerino Date: Wed, 7 Jun 2017 22:39:09 +0200 Subject: [PATCH] Updated the quickstart to be more Windows friendly Updated the quickstart to be more Windows friendly( added powershell example code and how to use it). --- view/template/developer/_quickstartApi.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/view/template/developer/_quickstartApi.php b/view/template/developer/_quickstartApi.php index e0f64d35..a8e6519b 100644 --- a/view/template/developer/_quickstartApi.php +++ b/view/template/developer/_quickstartApi.php @@ -3,7 +3,7 @@ When running, the LBRY daemon provides a JSON-RPC server running at http://localhost:5279/lbryapi.

- It can be accessed by any utility capable of making HTTPS GET and POST requests, such as cURL or possibly your toaster. + It can be accessed by any utility capable of making HTTPS GET and POST requests, such as cURL or possibly your toaster. Psst, if you are on windows you could use PowerShell while testing, scroll down to the bottom of this page to get more info.

To verify the LBRY daemon is running correctly, let's try looking up a URI: @@ -54,3 +54,8 @@

You can also list all of the commands available by calling the help command.

$curl 'http://localhost:5279/lbryapi' --data '{"method":"help"}' +

Windows

+

If you are running Windows and would like to follow this guide you could substitute curl with a PowerShell console and the following code. +

+$Invoke-RestMethod -Uri 'http://localhost:5279/lbryapi' -Body 'THE_JSON_DATA' -Method POST | ConvertTo-Json +