Sure, for example we implement this in the Virgo IDE. But there are a number of pieces to the interaction, it's not a matter of a simple API call. If you get totally lost let us know and I'll try to give you a better hint about how to accomplish it.
[Edit] I was thinking of this from remote API, there might be an easier way from user region proper. Or OTOH, it might be prohibited.