Commit 940c974d authored by Ben Galloway's avatar Ben Galloway

Update examples and todo in Readme

parent 79cbeffe
......@@ -18,7 +18,7 @@ This library uses the `debug` module to provide debug logs. To turn this on, set
```javascript
// Simple example, with no error handling
import { gammaResourceViewListLoad } from "gamma-in-js";
import { gammaResourceViewListLoad } from "gammajs";
(async () => {
const resourceViews = await gammaResourceViewListLoad();
console.log(resourceViews);
......@@ -154,7 +154,7 @@ More complex nested objects are also parsed - for example, to make this call to
you might use the following JavaScript:
```javascript
import { gammaBookingAllSave } from "gamma-in-js";
import { gammaBookingAllSave } from "gammajs";
const testBookingItem = {
GammaInputType: "Booking",
......@@ -283,7 +283,7 @@ If the Gamma API throws an error, an error will also be thrown from the JavaScri
## TODO
- **Endpoints** - the multi-endpoint API architecture has not yet been introduced to the live Gamma environment. `config.js` will require updating when this occurs.
- **CLI** - with some restructuring, this library could possibly also be used as a command-line tool.
## Methods List
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment