A
A
Andrei2017-03-28 21:42:03
Java
Andrei, 2017-03-28 21:42:03

Who will help to deal with restAssured authorization? with Yandex?

I understand in theory how to log in, but I can’t catch up with what and how to use, please tell me kind people !!! you need to go through authorization and get a test token at the test site, who can offer what implementation options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hland, 2017-03-29
@drox73

You press the get token button and insert it into the header
String response =
given()
.header(new Header("Authorization", "OAuth KEY"))
.get(" https://cloud-api.yandex.net/v1/disk ").asString();
System.out.println(response);

D
Dimonchik, 2017-03-28
@dimonchik2013

freelansim.ru

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question