InvitesApi
@interface InvitesApi : NodeDependant
Provides access to Textile invites related APIs
-
Invite a contact to a thread
Declaration
Objective-C
- (void)add:(nonnull NSString *)threadId address:(nonnull NSString *)address error:(NSError *_Nullable *_Nullable)error;Swift
func add(_ threadId: String, address: String, error: NSErrorPointer)Parameters
threadIdThe id of the thread to invite to
addressThe address of the contact to invite
errorA reference to an error pointer that will be set in the case of an error
-
Create an external invite, one for someone who isn’t in Textile yet
Declaration
Objective-C
- (id)addExternal:(nonnull NSString *)threadId error:(NSError *_Nullable *_Nullable)error;Swift
func addExternal(_ threadId: String) throws -> AnyParameters
threadIdThe id of the thread to invite to
errorA reference to an error pointer that will be set in the case of an error
Return Value
An object representing the external invite
-
View a list of pending incoming invites
Declaration
Objective-C
- (id)list:(NSError *_Nullable *_Nullable)error;Swift
func list() throws -> AnyParameters
errorA reference to an error pointer that will be set in the case of an error
Return Value
An object containing a list of pending invites
-
Accept an invite
Declaration
Objective-C
- (nonnull NSString *)accept:(nonnull NSString *)inviteId error:(NSError *_Nullable *_Nullable)error;Swift
func accept(_ inviteId: String, error: NSErrorPointer) -> StringParameters
inviteIdThe id of the invite to accept
errorA reference to an error pointer that will be set in the case of an error
Return Value
The hash of the new thread join block
-
Accept an external invite
Declaration
Objective-C
- (nonnull NSString *)acceptExternal:(nonnull NSString *)inviteId key:(nonnull NSString *)key error:(NSError *_Nullable *_Nullable)error;Swift
func acceptExternal(_ inviteId: String, key: String, error: NSErrorPointer) -> StringParameters
inviteIdThe id of the external invite to accept
keyThe key associated with the external invite to accept
errorA reference to an error pointer that will be set in the case of an error
Return Value
The hash of the new thread join block
-
Ignore an invite
Declaration
Objective-C
- (void)ignore:(nonnull NSString *)inviteId error:(NSError *_Nullable *_Nullable)error;Swift
func ignore(_ inviteId: String, error: NSErrorPointer)Parameters
inviteIdThe id of the invite to ignore
errorA reference to an error pointer that will be set in the case of an error
View on GitHub
InvitesApi Class Reference