Jump to content
al17nichols

Practical use of JSON and VCL components

Recommended Posts

I am accessing a web end webservice.  Unlike the sample projects that I have seen which download a json file, I need to access the endpoint, grab a token, request other identifiers with the token, finally use the token with other parameters to retrieve JSON data from an endpoint.  Would this be accomplished with TRestClient, TRestRequest, TRestResponse components as configured in the example projects or would another approach be taken.  If I used the referenced VCL components I would have to use multiple sets of the 3 components or change the parameters to resubmit requests to the endpoint for the different pieces of data. 

 

Can somebody advise the best approach to retrieve the desired results.  It is acceptable to recommend another approach altogether if it is the best approach.

 

 

Share this post


Link to post
15 minutes ago, al17nichols said:

Can somebody advise the best approach to retrieve the desired results.

Every task is different. Describe your task in detail and one can give some hints how to use these components for this task.

 

You don't need a separate set of components for each part. The same components can be used in sequence with changed properties.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×