• Developers
  • Create bunqmetab in python SDK

Hi all, i am struggling with the python SDK. I am trying to create a bunqmetab that i want to share with non-bunq-ers. This is what i have:

import config
from bunq import ApiEnvironmentType
from bunq.sdk.context.bunq_context import BunqContext
from bunq.sdk.context.api_context import ApiContext
from bunq.sdk.model.generated import endpoint
from bunq.sdk.model.generated.object_ import Amount

api_context = ApiContext.create(ApiEnvironmentType.PRODUCTION, config.bunqApiKey, config.bunqContextDescription)
BunqContext.load_api_context(api_context)

bunqmetabentry = endpoint.BunqMeTabEntry(Amount('0.01', 'EUR'),
                                         'Omschrijving test')

bunqmetabid = endpoint.BunqMeTab.create(bunqmetabentry)

print(endpoint.BunqMeTab._bunqme_tab_share_url)

All seems to work except for the last print line. The bunqme_tab_share_url is a property of the class, but i am unable to get the url which i can share with others:

 >>> print(endpoint.BunqMeTab.bunqme_tab_share_url)
<property object at 0x7fa71d9d4c70>
>>>  print(endpoint.BunqMeTab._bunqme_tab_share_url)
None

Any help would be greatly appreciated!

    Write a Reply...