Skip to content

Commit

Permalink
docs: Update bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
rrr523 committed Apr 4, 2024
1 parent 36747f0 commit 9484f7d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc-site/docs/api/bucket.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ This API is used to get bucket meta by bucket name.

```jsx title="Browser | Nodejs"
const bucketInfo = await client.bucket.getBucketMeta({
bucketName,
bucketName: 'bucketName',
});
```

Expand Down Expand Up @@ -162,7 +162,7 @@ Query the quota info of the specific bucket of current month.
```jsx
const tx = await client.bucket.getBucketReadQuota(
{
bucketName,
bucketName: 'bucketName',
},
// highlight-start
{
Expand All @@ -181,7 +181,7 @@ const tx = await client.bucket.getBucketReadQuota(
```js
const tx = await client.bucket.getBucketReadQuota(
{
bucketName,
bucketName: 'bucketName',
},
// highlight-start
{
Expand Down Expand Up @@ -226,7 +226,7 @@ Queries a bucket extra info (with gvg bindings and price time) with specify name
| bucketName | bucket name |

```jsx title="Browser | Nodejs"
const bucketInfo = await client.bucket.headBucketExtra(bucketName);
const bucketInfo = await client.bucket.headBucketExtra('bucketName');
```

<!-- ## headBucketNFT <ApiTypes type="Query" /> -->
Expand All @@ -246,7 +246,7 @@ List the download record info of the specific bucket of the current month.
```jsx
const tx = await client.bucket.listBucketReadRecords(
{
bucketName,
bucketName: 'bucketName',
startTimeStamp,
endTimeStamp,
maxRecords: 1000,
Expand All @@ -268,7 +268,7 @@ const tx = await client.bucket.listBucketReadRecords(
```js
const tx = await client.bucket.listBucketReadRecords(
{
bucketName,
bucketName: 'bucketName',
startTimeStamp,
endTimeStamp,
maxRecords: 1000,
Expand All @@ -295,7 +295,7 @@ Lists the bucket info of the user.

```jsx title="Browser | Nodejs"
const res = await client.bucket.listBuckets({
address,
address: '0x...',
});
```

Expand Down

0 comments on commit 9484f7d

Please sign in to comment.