delphi - Delpi XE8 REST Client and HubSpot -
i trying use delphi xe8 restclient,restrequest , restresponse optain content of response following api call:
https://api.hubapi.com/contacts/v1/lists/all/contacts/all?hapikey=demo&count=1000
the call runs fine in c# , in webbrowser.
i'm not sure how configure restclient , restrequest properties.
can breakdown api call restclient & restrequest properties me?
i've been wrestling hours , no success far.
below simple example of assignment of properties rest components.
creating new project , dropping button, restclient, restrequest, restresponse, , memo on form - can use code below on button click event see work.
procedure tform1.button1click(sender: tobject); begin restrequest1.client := restclient1; restrequest1.response := restresponse1; restclient1.baseurl := 'https://api.hubapi.com'; restrequest1.resource := 'contacts/v1/lists/all/contacts/all?hapikey=demo&count=1000'; restrequest1.execute; memo1.text := restresponse1.content; end;
Comments
Post a Comment