@@ -214,6 +214,8 @@ const { profileGraphQL, getProfile, getProfiles, getVerifiedAccounts } = require
214
214
* _ static_
215
215
* [ .getProfile(address, opts)] ( #Box.getProfile ) ⇒ <code >Object</code >
216
216
* [ .getProfiles(address, opts)] ( #Box.getProfiles ) ⇒ <code >Object</code >
217
+ * [ .getSpace(address, name, opts)] ( #Box.getSpace ) ⇒ <code >Object</code >
218
+ * [ .listSpaces(address, opts)] ( #Box.listSpaces ) ⇒ <code >Object</code >
217
219
* [ .profileGraphQL(query, opts)] ( #Box.profileGraphQL ) ⇒ <code >Object</code >
218
220
* [ .getVerifiedAccounts(profile)] ( #Box.getVerifiedAccounts ) ⇒ <code >Object</code >
219
221
* [ .openBox(address, ethereumProvider, opts)] ( #Box.openBox ) ⇒ [ <code >Box</code >] ( #Box )
@@ -329,6 +331,35 @@ Get a list of public profiles for given addresses. This relies on 3Box profile A
329
331
| opts | <code >Object</code > | Optional parameters |
330
332
| opts.profileServer | <code >String</code > | URL of Profile API server |
331
333
334
+ <a name =" Box.getSpace " ></a >
335
+
336
+ #### Box.getSpace(address, name, opts) ⇒ <code >Object</code >
337
+ Get the public data in a space of a given address with the given name
338
+
339
+ ** Kind** : static method of [ <code >Box</code >] ( #Box )
340
+ ** Returns** : <code >Object</code > - a json object with the public space data
341
+
342
+ | Param | Type | Description |
343
+ | --- | --- | --- |
344
+ | address | <code >String</code > | An ethereum address |
345
+ | name | <code >String</code > | A space name |
346
+ | opts | <code >Object</code > | Optional parameters |
347
+ | opts.profileServer | <code >String</code > | URL of Profile API server |
348
+
349
+ <a name =" Box.listSpaces " ></a >
350
+
351
+ #### Box.listSpaces(address, opts) ⇒ <code >Object</code >
352
+ Get the names of all spaces a user has
353
+
354
+ ** Kind** : static method of [ <code >Box</code >] ( #Box )
355
+ ** Returns** : <code >Object</code > - an array with all spaces as strings
356
+
357
+ | Param | Type | Description |
358
+ | --- | --- | --- |
359
+ | address | <code >String</code > | An ethereum address |
360
+ | opts | <code >Object</code > | Optional parameters |
361
+ | opts.profileServer | <code >String</code > | URL of Profile API server |
362
+
332
363
<a name =" Box.profileGraphQL " ></a >
333
364
334
365
#### Box.profileGraphQL(query, opts) ⇒ <code >Object</code >
0 commit comments