Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #include "api/BatchesApi.h"
  2. using namespace io::swagger::client::api;
  3.  
  4. int main()
  5. {
  6.     std::shared_ptr<ApiClient> apiClient(new ApiClient);
  7.     std::shared_ptr<ApiConfiguration> apiConfig(new ApiConfiguration);
  8.     apiConfig->setBaseUrl("http://kge.slickboot.com/msc");
  9.     apiClient->setConfiguration(apiConfig);
  10.     BatchesApi api(apiClient);
  11.     api.batchesRead("3232423").then([=](pplx::task<std::shared_ptr<Batches>> example) {
  12.         try {
  13.             std::cout << example.get()->getBatchName() << '\n';
  14.         } catch(const std::exception& e) {
  15.             std::cout << "getExample() exception: " << e.what() << '\n';
  16.         }
  17.     }).wait();
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement