Hi,
I am new to use Simpro API . I need your advice. How do I call simpro API in my excel - VBA application?
I have registered my application and got the API key to use. Now not sure how to use it. I have used as below as a test code.
BUt the response is blank. Please help. Thank you.
Set objXML = CreateObject("MSXML2.XMLHTTP")
With objXML
.Open "GET","https://companyname.simprosuite.com/api ... gs/",False, "Authorisation", "Bearer <API Key>"
.setRequestHeader "Content-Type", "application/json"
.send
Do While .ReadyState <> 4
DoEvents
Loop
strText = .responsetext
End With
Regards,
Sam
[RESOLVED] How to call Simpro API in Excel VBA
Forum rules
- Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
- No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
- Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
- Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
- Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
- Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
- Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
- Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Re: How to call Simpro API in Excel VBA
Manged to crack it.
Works fine now.
Works fine now.
DEVELOPER CENTER