Skip to content

Commit 93eb85e

Browse files
committed
Rename data -> body
1 parent c265dfb commit 93eb85e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,14 @@ This API is used internally and is not directly supported.
396396

397397
#### Inspecting the Request
398398

399-
It is possible to inspect a request before it is sent. All of the client methods return an instance of `SeamHttpRequest` which has `url`, `method` and `data` properties. The request is only sent to the server when the `SeamHttpRequest` is awaited.
399+
It is possible to inspect a request before it is sent. All of the client methods return an instance of `SeamHttpRequest` which has `url`, `method` and `body` properties. The request is only sent to the server when the `SeamHttpRequest` is awaited.
400400

401401
```ts
402402
const seam = new SeamHttp('your-api-key')
403403

404404
const request = seam.devices.list()
405405

406-
console.log('Sending request', request.url, request.method, request.data)
406+
console.log('Sending request', request.url, request.method, request.body)
407407

408408
const devices = await request // or `await request.execute()` if you prefer
409409

0 commit comments

Comments
 (0)