userBackgroundEdit websocket测试 POST api/v1/userBackgroundEdit 接口描述 用户信息 php $client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/userBackgroundEdit', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body)); js const url = new URL( "http://sns.shenruxiang.com/api/v1/userBackgroundEdit" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; fetch(url, { method: "POST", headers: headers, }) .then(response => response.json()) .then(json => console.log(json)); 返回值 { "code": 0, "msg": "编辑背景成功", "data": [] } bash curl -X POST \ "http://sns.shenruxiang.com/api/v1/userBackgroundEdit" \ -H "Content-Type: application/json" \ -H "Accept: application/json"
$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/userBackgroundEdit', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));
const url = new URL( "http://sns.shenruxiang.com/api/v1/userBackgroundEdit" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; fetch(url, { method: "POST", headers: headers, }) .then(response => response.json()) .then(json => console.log(json));
curl -X POST \ "http://sns.shenruxiang.com/api/v1/userBackgroundEdit" \ -H "Content-Type: application/json" \ -H "Accept: application/json"