matlab登录API接口
clc
clear
%登录
URL = ‘api接口网址’;
options = weboptions(‘RequestMethod’,‘post’,‘MediaType’,‘application/json’,‘ContentType’,‘json’);
uesr_password = ‘密码’;
user_name = ‘用户名’;
data = struct(‘password’,uesr_password,‘name’,user_name);
response = webwrite(URL,data,options)