Class: Comment

Comment(shopify)

new Comment(shopify)

Creates a Comment instance.
Parameters:
Name Type Description
shopify Shopify Reference to the Shopify instance

Methods

approve(id) → {Promise}

Approves a pending comment.
Parameters:
Name Type Description
id Number Comment ID
Returns:
Promise that resolves with the result
Type
Promise

notSpam(id) → {Promise}

Marks a comment as not spam.
Parameters:
Name Type Description
id Number Comment ID
Returns:
Promise that resolves with the result
Type
Promise

remove(id) → {Promise}

Removes a comment.
Parameters:
Name Type Description
id Number Comment ID
Returns:
Promise that resolves with the result
Type
Promise

restore(id) → {Promise}

Restores a comment.
Parameters:
Name Type Description
id Number Comment ID
Returns:
Promise that resolves with the result
Type
Promise

spam(id) → {Promise}

Marks a comment as spam.
Parameters:
Name Type Description
id Number Comment ID
Returns:
Promise that resolves with the result
Type
Promise