文档
测试

userInfoSelect

POST
api/v1/userInfoSelect

接口描述

用户信息

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/userInfoSelect', [ '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/userInfoSelect" ); 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": { "nick": "裴威【昵称】", "city": "重庆", "desc": "111【签名】", "phone": "18210685560", "address": "1111" } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/userInfoSelect" \ -H "Content-Type: application/json" \ -H "Accept: application/json"