Apr-17-2018, 10:44 AM
Thank you for your reply, this is good but if some one could help me saving time it would be better :)
this is my python code :
this is my python code :
class EmbedToken: def __init__(self, report_id, group_id, settings=None): self.username = '[email protected]' self.password = 'MyPassword' self.client_id = '28c7e68d-6eb1-4be3-8b97-4c0fa9cd83d6' self.report_id = report_id self.group_id = group_id if settings is None: #self.settings = {'accessLevel': 'View', 'allowSaveAs': 'false'} self.identitie = {'accessLevel': 'View','identities': [{'username': '[email protected]','roles': ['FranceSales'],'datasets': ['382ea16c-fbcc-4cec-bb60-470aff4aebaa']}]} print(self.identitie) self.settings = self.identitie else: self.settings = settingsWhen I add identities to json settings it's not working .