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).
This commit is contained in:
Fillerino 2017-06-07 22:39:09 +02:00 committed by GitHub
parent 748f756807
commit e158d9aafd

View file

@ -3,7 +3,7 @@
When running, the LBRY daemon provides a JSON-RPC server running at <code class="code-inline">http://localhost:5279/lbryapi</code>.
</p>
<p>
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.
</p>
<p>
To verify the LBRY daemon is running correctly, let's try looking up a URI:
@ -54,3 +54,8 @@
<p>You can also list all of the commands available by calling the <span class="code-plan">help</span> command.</p>
<code class="code-bash"><span class="code-bash__prompt">$</span>curl 'http://localhost:5279/lbryapi' --data '{"method":"help"}'
</code>
<h3>Windows</h3>
<p>If you are running Windows and would like to follow this guide you could substitute curl with a PowerShell console and the following code.
</p>
<code class="code-bash"><span class="code-bash__prompt">$</span>Invoke-RestMethod -Uri 'http://localhost:5279/lbryapi' -Body 'THE_JSON_DATA' -Method POST | ConvertTo-Json
</code>