1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-01 04:43:29 +03:00

Variable renaming on code snippets

This commit is contained in:
Kegsay
2015-03-09 16:21:00 +00:00
parent a912de8bfb
commit e6249e4a08

View File

@@ -20,8 +20,8 @@ In Node
:: ::
var matrixcs = require("matrix-js-sdk"); var sdk = require("matrix-js-sdk");
var client = matrixcs.createClient("https://matrix.org"); var client = sdk.createClient("https://matrix.org");
client.publicRooms(function(err, data) { client.publicRooms(function(err, data) {
console.log("Public Rooms: %s", JSON.stringify(data)); console.log("Public Rooms: %s", JSON.stringify(data));
}); });
@@ -35,7 +35,7 @@ Please see the `client server API`_ for more information on the HTTP calls.
Matrix Client Matrix Client
------------- -------------
``MatrixClient`` is constructed via ``matrixcs.createClient(args)`` where ``args`` can be: ``MatrixClient`` is constructed via ``sdk.createClient(args)`` where ``args`` can be:
- ``baseUrl`` (String) : The home server base URL to make requests to. - ``baseUrl`` (String) : The home server base URL to make requests to.
- ``credentials`` (Object) : Consists of a ``baseUrl`` (String), a ``userId`` (String) - ``credentials`` (Object) : Consists of a ``baseUrl`` (String), a ``userId`` (String)