Public Function GetBetfairSessionID(sUserName As String, sPassword As String) As BetfairSessionInfo Dim myMSXML As MSXML2.XMLHTTP60 Dim AuthURL As String AuthURL = "https://identitysso.betfair.com/api/certlogin" Set myMSXML = CreateObject("MSXML2.ServerXMLHTTP") 'myMSXML.setTimeouts 30000, 30000, 0, 0 myMSXML.open "POST", AuthURL, False myMSXML.setRequestHeader "Accept", "application/json" myMSXML.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" myMSXML.setRequestHeader "X-Application", [MY APPLICATION KEY AS GENERATED THROUGH BETFAIR] myMSXML.send "userName=" & sUserName & "&password=" & sPassword MsgBox myMSXML.responseText ............ More code follows, but not valid as Response Text not returning Session ID etc... End Function
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: