Skip to content

Commit b3678c6

Browse files
aggiunta infomrativa sui metodi undefined
1 parent 53d6e1f commit b3678c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@ const token = await client.generateToken(scopes);
4343

4444
// The client is now ready to make requests
4545
```
46+
### Undefined methods
47+
The client will instantiate **only the instances needed** based on the provided token: if you get `undefined` method when you attempt to run a request, please check if you have all the required permissions.
4648

4749
## Make requests
4850
Once the client has been initialized, we can start making requests: all the available methods will be loaded based on the provided token.
4951

5052
As an example, let's request the list of all cities in a given CAP
5153

5254
```js
53-
const cities = await client.comuni.getCitiesByCap('00132')
55+
const cities = await client.comuni.getCitiesByCap('00132')
5456
try {
5557
} catch(err) {
5658
// err handling logic...

0 commit comments

Comments
 (0)