Dear Dlubal community,
I use the new API to automate creating models and running static analysis. Because I don't want to exceed my API requests limit, I check how many credits are still available before every run (with the method get_subscription_info).
But the method returns stale data - I see for example api_requests_count: 581 after three or four runs - the value does not change although the credits are consumed. After a while, it shows updated value. Sometimes api_requests_count updates after one minute, sometimes it stays the same quarter of an hour.
This is quite inconvenient because I would like to track, how many credits exactly was consumed after a single run.
RFEM / API version: 6.14.0005 / 2.14.5
Why is not value updating immediately?
Thanks for clarifying.
with Application(api_key_value=api_key, port=port) as rfem:
print("SUMMARY:")
subscription_info : SubscriptionInfo = rfem.get_subscription_info()
print(subscription_info)
print("Credits left: ", subscription_info.api_requests_limit - subscription_info.api_requests_count)
Jane