Make the method actually fetch something

This commit is contained in:
Monty Taylor 2019-02-09 18:55:32 +00:00
parent a608f98b4f
commit 9791caef35
1 changed files with 6 additions and 1 deletions

View File

@ -25,6 +25,11 @@ using namespace std;
int main(int, char**)
{
web::http::client::http_client client("https://zuul.opendev.org");
auto response = client.request(
web::http::methods::GET,
"/api/tenant/openstack/build/75031cad206c4014ad7a3387091d15ab").get();
auto body = response.extract_json().get();
cout << response.status_code() << endl;
cout << body.serialize() << endl;
}