A
A
Arman Zhusupov2019-09-30 07:42:51
API
Arman Zhusupov, 2019-09-30 07:42:51

How to write specific response value to csv file?

Good day! Help. I have such a question, I have api requests and when the answer comes I need to write down the result, and again send requests from this file. I am using View Results Tree. It downloads the entire value and will have to sit and delete unnecessary fields, it is very expensive, when 15 thousand requests will then be unreal. The answer comes like
5d9185afebb49131545643.jpeg
this on this screen you can see the "RequestGuid" and "TaxPayerNumber" fields, I need to write these fields specifically in the csv file and it should be written as in the screenshot
5d918712d388d038889630.jpeg
Which sampler to use and which script to write, Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LaraLover, 2019-09-30
@LaraLover

You receive a response in JSON. So refer to millet to the desired values.

$result = file_get_contents(http://yoursite.ru);
echo $result->RequestGuid.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question