Digital Access Pass and Pro sites

Hi

I am wondering if there is a way, to call pro sites from another plugin like Digital access pass.

Senario is, lets say we have a free level, silver level and gold level in Digital access pass and pro Sites. Digital access pass has a way to call 3. party apis or script when setting up a product.

Is there anything or a simple script which can call pro sites api or functions, meaning if a user buys silver level in DAP, then they will also get silver level in pro sites.

I am wondering if it would be easier to also install the membership plugin and have Digtal access pass and membership plugin talk toghter

any suggestion or anyone have a small script which calls the functions in pro sites and can be addpated to Digital access pass

thanks in advance

br

Karsten