CommentsApi

@interface CommentsApi : NodeDependant

Provides access to Textile comments related APIs

  • Add a comment to any block by id

    Declaration

    Objective-C

    - (nonnull NSString *)add:(nonnull NSString *)blockId
                         body:(nonnull NSString *)body
                        error:(NSError *_Nullable *_Nullable)error;

    Swift

    func add(_ blockId: String, body: String, error: NSErrorPointer) -> String

    Parameters

    blockId

    The id of the block you want to add a comment to

    body

    The text of the comment to add

    error

    A reference to an error pointer that will be set in the case of an error

    Return Value

    The id of the new comment block