文档
测试

getPhone

POST
api/v1/refreshSessionKey

接口描述

刷新sessionkey

请求参数

参数名
类型
描述
必填
code
string
必填
openid
string
微信标示
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/refreshSessionKey', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'code' => 'libero', 'openid' => 'asperiores', ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/refreshSessionKey" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "code": "libero", "openid": "asperiores" } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "请求成功", "data": "3123123dasdsad21312123123as" }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/refreshSessionKey" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"code":"libero","openid":"asperiores"}'