SHARE
TWEET

Untitled

a guest Aug 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top