Where clientKey and clientSecret are used to identify your client application. You can use theclient key/secret combination generated by default for your platform or you can create a new client. Ideally, youwill have one client per JS/HTML5 or Node.js application running out in the wild.

You can provide the username and password for any valid user on your platform. Make sure that this userhas sufficient CONNECT privileges to the platform and that they have sufficient rights to any resources you attemptto use (otherwise, you will see 401 authentication errors).

You may also opt to take advantage of Authentication Grants to generate private application user key/secret in lieu ofusername/password credentials.

AMD

The driver also supports AMD. If you're using a module loader like RequireJS, you can load the gitanamodule and utilize it within your code. Kind of like this:

Driver API and Chaining

This driver makes it really simple to work with Cloud CMS data stores and objects as though they were local objectsright within your JS application. The driver lets you get at all of the runtime and authoring capabilities of thesystem.

In addition, this driver features asynchronous method chaining. This lets you chain together commands that go overthe wire and avoid a lot of the headache of manually managing callbacks. As a result, your code is smaller, thereis less to manage and it's easier to read.