文档
测试

userGroundList

POST
api/v1/userGroundList

接口描述

商家钓场列表

请求参数

参数名
类型
描述
必填
user_id
integer
用户id
必填
token
integer
用户token
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/userGroundList', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'user_id' => 14, 'token' => 3, ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/userGroundList" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "user_id": 14, "token": 3 } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "请求成功", "data": [ { "id": 9, "name": "第三方", "address": "安徽省合肥市蜀山区东流路888号", "fish_weight": 0, "pond_num": 0, "src": "\/storage\/2020-09-16\/11725b81199f7e5b1d36464b8734dab5.jpg" }, { "id": 8, "name": "测试", "address": "安徽省合肥市蜀山区东流路888号", "fish_weight": 0, "pond_num": 0, "src": "\/storage\/2020-09-16\/ea07c8e5d7eea7869ee1c58b4b8e4367.jpg" } ] }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/userGroundList" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":14,"token":3}'