南昌優(yōu)化網(wǎng)站服務(wù)哪里有免費的網(wǎng)站推廣
httplib文件鏈接:百度網(wǎng)盤 請輸入提取碼
提取碼:kgnq
json解析庫:百度網(wǎng)盤 請輸入提取碼
提取碼:oug0
一、獲取token
打開postman, 在body這個參數(shù)中點擊raw,輸入用戶名和密碼
然后需要獲取到域名和地址。
c++代碼如下:
#include "httplib.h"
#include "cJSON.h"
int main() {auto *root = cJSON_CreateObject();cJSON_AddStringToObject(root, "loginName", "name");