LM PY SDK error on swagger_client
Hi,
Im working on a script in python to add website checks. but the sdk documentation (https://www.logicmonitor.com/support-files/rest-api-developers-guide/sdks/docs/#api-LM-addWebsite) uses the following:
for instance in addWebsite:
```
body = swagger_client.models.Website(
```
it then gives me the following error: "swagger_client" is not defined
and i cannot find documentation on how to set this up.
Hope someone can help me.
chiel_boogaard
Posted 4 years ago·Last reply 4 years ago
3 comments
LM User
·4 years agoOh yeah, the examples assume your import statement looks like this:
chiel_boogaard
OP4 years ago@Stuart Weenig yeah that works as well.
found the issue:
by changing it to:
LM User
·4 years agoYou don't have to make it a swagger client. You can just make it a Python dictionary. I was able to add a website like this: