diff --git a/view/template/developer/_quickstartApi.php b/view/template/developer/_quickstartApi.php index f2c1111e..0e2d4477 100644 --- a/view/template/developer/_quickstartApi.php +++ b/view/template/developer/_quickstartApi.php @@ -1,6 +1,6 @@
- When running, the LBRY daemon provides a JSON-RPC server running at https://localhost:5279/lbryapi.
+ When running, the LBRY daemon provides a JSON-RPC server running at https://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. @@ -25,8 +25,8 @@ "thumbnail": "https:\/\/s3.amazonaws.com\/files.lbry.io\/logo.png" } ] -
Above, we called the method resolve_name for the URL lbry://what. This returned the metadata associated with the URL.
-Now let's download it. This time we're going to call the method get with the same parameters.
+Above, we called the method resolve_name
for the URL lbry://what
. This returned the metadata associated with the URL.
Now let's download it. This time we're going to call the method get
with the same parameters.
$curl 'http://localhost:5279/lbryapi' --data '{"method":"get","params":{"name":"what"} }'
["d5169241150022f996fa7cd6a9a1c421937276a3275eb912790bd07ba7aec1fac5fd45431d226b8fb402691e79aeb24b"]
The LBRY API consists about 50 calls, all related to discovering, distributing, and purchasing content. View the full API documentation.
diff --git a/view/template/developer/_quickstartCredits.php b/view/template/developer/_quickstartCredits.php index e148c05c..f2575aa5 100644 --- a/view/template/developer/_quickstartCredits.php +++ b/view/template/developer/_quickstartCredits.php @@ -9,7 +9,7 @@ 'returnUrl' => Request::getRelativeUri() . '#new-developer' ]) ?> -Next, confirm you've received your credits by calling wallet_balance:
+Next, confirm you've received your credits by calling wallet_balance
:
$curl 'http://localhost:5279/lbryapi' --data '{"method":"wallet_balance"}'
[50.00000000]