summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2019-02-09 18:55:32 +0000
committerMonty Taylor <mordred@inaugust.com>2019-02-09 18:55:32 +0000
commit9791caef3527c3e1d032ddfee877d30aa393b0eb (patch)
tree493e77006e3198992a3edea0cb734ed5d23f5614
parenta608f98b4fa2fef37731c110569b965082df9a33 (diff)
Make the method actually fetch something
-rw-r--r--zuul-preview/main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/zuul-preview/main.cc b/zuul-preview/main.cc
index c5aee99..f609363 100644
--- a/zuul-preview/main.cc
+++ b/zuul-preview/main.cc
@@ -25,6 +25,11 @@ using namespace std;
25 25
26int main(int, char**) 26int main(int, char**)
27{ 27{
28
29 web::http::client::http_client client("https://zuul.opendev.org"); 28 web::http::client::http_client client("https://zuul.opendev.org");
29 auto response = client.request(
30 web::http::methods::GET,
31 "/api/tenant/openstack/build/75031cad206c4014ad7a3387091d15ab").get();
32 auto body = response.extract_json().get();
33 cout << response.status_code() << endl;
34 cout << body.serialize() << endl;
30} 35}