文档
测试

userGroundCollectList

POST
api/v1/userGroundCollectList

接口描述

用户钓场收藏列表

请求参数

参数名
类型
描述
必填
lat
string
经度
必填
lng
string
纬度
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/userGroundCollectList', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'lat' => 'quas', 'lng' => 'tenetur', ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/userGroundCollectList" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "lat": "quas", "lng": "tenetur" } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "请求成功", "data": { "current_page": 1, "data": [ { "id": 3, "ground_id": 2, "user_id": 1, "distance": "18.24【距离 km自己加】", "ground": { "name": "接口测试钓场", "visit_num": 11, "id": 2, "address": "天津市武清区杨柳树", "src": "http:\/\/daodao.shenruxiang.com\/0fc36dada1f6d9303a4cc3b8c8da91d9.jpg" } } ], "first_page_url": "https:\/\/fish.shenruxiang.com\/api\/v1\/userGroundCollectList?page=1", "from": 1, "next_page_url": null, "path": "https:\/\/fish.shenruxiang.com\/api\/v1\/userGroundCollectList", "per_page": 20, "prev_page_url": null, "to": 1 } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/userGroundCollectList" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"lat":"quas","lng":"tenetur"}'