How to get value for API URL from other custom module

I have created a custom module A(google business Review API) for getting reviews, for get store specific review i want to pass my store code to the API URL, i am using amasty store module B, there is i have created a custom attribute and saved my store code, how to pass this store code to my another custom module A(google business Review ) API URL.

In module B after entering the store code attribute if i click the save button then the value pass to Module A there i can get my attribute and pass it to my API URL.

How to achieve this?