Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update listBuckets section #50

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/space-daemon/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ Creates a new bucket. Returns a Promise that resolves to the new bucket instance
console.log(bucket.getPath());
console.log(bucket.getCreatedat());
console.log(bucket.getUpdatedat());
console.log(bucket.getMembersList());
console.log(bucket.getIsselectgroupbucket());
})
.catch((err) => {
console.error(err);
Expand All @@ -185,7 +187,7 @@ Returns all the buckets available

```js
client
.listBuckets()
.listBuckets({})
.then((res) => {
const buckets = res.getBucketsList();

Expand All @@ -195,6 +197,8 @@ Returns all the buckets available
console.log('path:', bucket.getPath());
console.log('createdAt:', bucket.getCreatedat());
console.log('updatedAt:', bucket.getUpdatedat());
console.log('membersList:', bucket.getMembersList());
console.log('isSelectGroupBucket:', bucket.getIsselectgroupbucket());
});
})
.catch((err) => {
Expand Down Expand Up @@ -466,7 +470,7 @@ Get an indentity based on a username. Returns a Promise that resolves if a usern

> .shareBucket({ bucket?: string })

Shares a bucket. Returns a promis that resolves to the threadInfo (required to join a bucket).
Shares a bucket. Returns a promise that resolves to the threadInfo (required to join a bucket).
If you don't specify the `bucket` property, `client.defaultBucket` value is going to be used instead.

```js
Expand Down