Skip to content

Commit

Permalink
Update client.md
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Sep 20, 2023
1 parent 81594e1 commit df42093
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/4.x/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
该方法将 API 交由开发者自行调用,微信有部分新的接口4.x并未全部兼容支持,可以使用该方案去自行封装接口:

例如URL Link接口

```php
$api = $app->getClient();

$response = $api->httpPostJson('wxa/generate_urllink',[
$response = $app->httpPostJson('wxa/generate_urllink',[
'path' => 'pages/index/index',
'is_expire' => true,
'expire_type' => 1,
Expand All @@ -26,15 +26,15 @@ httpPostJson(string $uri, array $data = [], array $query = [])
### GET

```php
$response = $api->httpGet('/cgi-bin/user/list', [
$response = $app->httpGet('/cgi-bin/user/list', [
'next_openid' => 'OPENID1',
]);
```

### POST

```php
$response = $api->httpPostJson('/cgi-bin/user/info/updateremark', [
$response = $app->httpPostJson('/cgi-bin/user/info/updateremark', [
"openid" => "oDF3iY9ffA-hqb2vVvbr7qxf6A0Q",
"remark" => "pangzi"
]);
Expand Down

1 comment on commit df42093

@vercel
Copy link

@vercel vercel bot commented on df42093 Sep 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

easywechat – ./

easywechat.vercel.app
easywechat-git-6x-overtrue.vercel.app
easywechat-overtrue.vercel.app

Please sign in to comment.