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 ...@@ -18,7 +18,7 @@ This library uses the `debug` module to provide debug logs. To turn this on, set
```javascript ```javascript
// Simple example, with no error handling // Simple example, with no error handling
import { gammaResourceViewListLoad } from "gamma-in-js"; import { gammaResourceViewListLoad } from "gammajs";
(async () => { (async () => {
const resourceViews = await gammaResourceViewListLoad(); const resourceViews = await gammaResourceViewListLoad();
console.log(resourceViews); console.log(resourceViews);
...@@ -154,7 +154,7 @@ More complex nested objects are also parsed - for example, to make this call to ...@@ -154,7 +154,7 @@ More complex nested objects are also parsed - for example, to make this call to
you might use the following JavaScript: you might use the following JavaScript:
```javascript ```javascript
import { gammaBookingAllSave } from "gamma-in-js"; import { gammaBookingAllSave } from "gammajs";
const testBookingItem = { const testBookingItem = {
GammaInputType: "Booking", GammaInputType: "Booking",
...@@ -283,7 +283,7 @@ If the Gamma API throws an error, an error will also be thrown from the JavaScri ...@@ -283,7 +283,7 @@ If the Gamma API throws an error, an error will also be thrown from the JavaScri
## TODO ## 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 ## 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