Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adding Parameters using TRESTRequest

I have some issue to compile this portion of code :

RESTRequest.AddParameter('Id',edtId.Text,TRESTRequestParameterKind.pkGETorPOST);

it says :

undeclared identifier TRESTRequestParameterKind

I have dropped following components on the form : TRESTClient , TRESTRequest , TRestResponse

Any idea What did I miss or why I have this error code ?

like image 736
koul Avatar asked Feb 12 '23 02:02

koul


1 Answers

You have to add REST.Types to your uses clause.

like image 125
Dalija Prasnikar Avatar answered Feb 21 '23 19:02

Dalija Prasnikar