Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "api/BatchesApi.h"
- using namespace io::swagger::client::api;
- int main()
- {
- std::shared_ptr<ApiClient> apiClient(new ApiClient);
- std::shared_ptr<ApiConfiguration> apiConfig(new ApiConfiguration);
- apiConfig->setBaseUrl("http://kge.slickboot.com/msc");
- apiClient->setConfiguration(apiConfig);
- BatchesApi api(apiClient);
- api.batchesRead("3232423").then([=](pplx::task<std::shared_ptr<Batches>> example) {
- try {
- std::cout << example.get()->getBatchName() << '\n';
- } catch(const std::exception& e) {
- std::cout << "getExample() exception: " << e.what() << '\n';
- }
- }).wait();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement