Link to home
Start Free TrialLog in
Avatar of Andy Brown
Andy BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to make POST/GET REST API calls from VBA

I have an MS Access / VBA application running on an RDP server.  I have been asked to interface with a phone system via REST API.  I haven't done this before, so could do with some help in relation go GET/POST commands.  However, I am also concerned about memory/processor overhead for each user.

So....I could really do with some advice.
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Note that the above requires a reference be set to one of the Microsoft XML lib's.   That gives you the ability to do the POST/GET.

 Also might want to look at:

https://github.com/VBA-tools/VBA-Web

 Which is a utility for working with web sites.

Jim.
Avatar of Andy Brown

ASKER

Jim - as always - thank you.  You've really made my life easier and as mentioned before, if you're ever in Hamburg (Germany), I owe you several beers.
No problem and glad it helps you out.

One "gotcha" I should have mentioned that you need to watch out for; always use POST.    GET can be cached, giving you erroneous results for a call.   Learned that one the hard way<g>

Also the format for the strings being sent/received is whatever they web site wants and are documented in their API.   There is no standards for any of that.   Probably obvious, but I thought I should mention it.

Jim.
Thanks Jim - good to know.

Take care....
"Also the format for the strings being sent/received is whatever they web site wants and are documented in their API.   There is no standards for any of that.   Probably obvious, but I thought I should mention it."

And, unfortunately, is subject to change at any time, without announcement.
Nice point Dale - thanks for your help again.