我正在尝试使用C++的REST API创建一个可以在控制台中显示JSON文件的程序.我正试图从api.trello.com获取JSON文件,但我遇到的每个例子都给我一个错误,通常是关于cbegin()&cend()以及它是如何不是web::json::value...
这是我的代码:
// The code includes the most frequently used includes necessary to work with C++ REST SDK
#include "cpprest/containerstream.h"
#include "cpprest/filestream.h"
#include "cpprest/http_client.h"
#include "cpprest/json.h"
#include "cpprest/producerconsumerstream.h"
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
using namespace ::pplx;
using namespace utility;
using namespace concurrency::streams;
using namespace web;
using namespace web::http;
using namespace web::http::client;
using namespace web::json;
using namespace std;
using namespace web;
using namespace web::http;
using namespace web::http::client;
// Retrieves a JSON …Run Code Online (Sandbox Code Playgroud)