How to invoke a vault API from a plugin?

Could someone please direct me to example code that invokes a vault API from a vault plugin?

In particular, I’d like to be able to write to a secrets plugin from an auth plugin, and so far I haven’t found any similar examples or otherwise figured out how to do that. More details of what I’m trying to do is in this vault-plugin-auth-jwt issue 101.

Dave

I found a solution and posted it on the vault-tool google group..

Dave