I need to execute below curl code in order to get access to json feed:
But I have the tokens in variable like this:
In orer to get access to json feed I nned to send the above tokens
What I tried untill now was:
1. C# code:
++ same for the other tokens
2. Get request to url "https://api.domain.com/products.json"
But it doesn't work
Any suggestion?
Код:
curl -H "Content-Type: application/json" -H "token1: 0nf6k2wqft57" -H "token2: htrey54678jjjrr" -H "token3: [email protected]" -i https://api.domain.com/products.json
Код:
curl -H "Content-Type: application/json" -H "token1: {-Variable.TokenOne-}" -H "token2: {-Variable.AccessTwo-}" -H "token3: {-Variable.TokenThree-}" -i https://api.domain.com/products.json
What I tried untill now was:
1. C# code:
Код:
// format header strings
string tokenone = project.Variables ["TokenOne"]. Value;
// set header
instance.SetHeader("token1", uidtokenvar);
2. Get request to url "https://api.domain.com/products.json"
But it doesn't work
Any suggestion?