Hello,
I am trying to claim a network device by using the Python API.
I am using the library "meraki 0.100.2".
In this library, I am trying to use the method "claimNetworkDevices(self, networkId: str, **kwargs)", but it doesn't work.
Here is my code :
import meraki
if __name__ == "__main__":
dashboard = meraki.DashboardAPI()
serial = ['****-****-****']
network_id = "N_******************"
dashboard.devices.claimNetworkDevices(network_id,serial)
I get this error :
dashboard.devices.claimNetworkDevices(network_id,serial)
TypeError: claimNetworkDevices() takes 2 positional arguments but 3 were given
I have tried by using different type of serial argument :
serial = {
"serials": [
"****-****-****"
]
}
serial = "****-****-****'
serial = '****-****-****'
but I still have the same issue. I checked the method definition in "devices.py", but I didn't help.
It works fine when I use POSTMAN with the same request.
What am I doing wrong ? Does anyone have the same issue ?