Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xLogic committed Aug 8, 2018
1 parent ab4b6ba commit 65decb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ $testCase = (object)array(
'idcard' => 'XXXXXXXXXXXXXXXXXX'
);

// Async
$DESMerchantClient->createDataExchangeRequest($testCase, 2, function ($res) use ($DESMerchantClient) {
$requestId = $res->request_id;
$DESMerchantClient->getResult($requestId, function ($results) {
echo json_encode($results);
});
});

// Sync
$results = $DESMerchantClient->createDataExchangeRequestSync($testCase, 2);
echo json_encode($results);
```
### Datasource
Expand Down

0 comments on commit 65decb5

Please sign in to comment.