| 190 | } |
| 191 | |
| 192 | Poco::JSON::Object::Ptr API::doJWSRequestExpectingJSON( |
| 193 | const Poco::URI & url, |
| 194 | const std::string & payload, |
| 195 | std::shared_ptr<Poco::Net::HTTPResponse> response) const |
| 196 | { |
| 197 | auto response_data = doJWSRequest(url, payload, response); |
| 198 | |
| 199 | Poco::JSON::Parser parser; |
| 200 | return parser.parse(response_data).extract<Poco::JSON::Object::Ptr>(); |
| 201 | } |
| 202 | |
| 203 | std::string API::doJWSRequestWithEmptyPayload(const Poco::URI & url) const |
| 204 | { |