Circle of Trust
Get info about a user's circle.
Documentation
This package exports a function for getting a circle from a Reddit username (using ES6 Promises), like so:
const circleOfTrust = ; // Circle information (see below) ; // Failed to get circle info (e.g. no such user or circle)
The promise resolves with an object containing information about the circle:
Property | Type | Description |
---|---|---|
circle.name |
String | The name given to the circle |
circle.link |
String | A permalink to the circle |
circle.id |
String | The circle's identifier |
circle.owner |
String | The owner, good chance it'll be the person you specified. |
circle.betrayed |
Boolean | Whether the circle has been betrayed or not. |
circle.score |
Number | The score of the circle. |
circle.key |
Null | If key already used, that key as a String. Otherwise, Null. |