koul
koul

Reputation: 481

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 ?

Upvotes: 4

Views: 8361

Answers (1)

Dalija Prasnikar
Dalija Prasnikar

Reputation: 28519

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

Upvotes: 8

Related Questions