module Totter::Client::Stickers
Client
methods for working with stickers.
Public Instance Methods
follow_sticker(sticker)
click to toggle source
Follow all users with a specific sticker
Requires authenticated client.
@param sticker [String] sticker to follow @return [Boolean] True if follow was successful, false otherwise @example
client.follow_sticker('featured')
# File lib/totter/client/stickers.rb, line 23 def follow_sticker(sticker) boolean_from_response(:post, "stickers/#{sticker}/follow") end
sticker(sticker_name)
click to toggle source
Get all of the users with a given sticker.
@param sticker_name [String] the sticker to get users for @return [Array] an array of `Hashie::Mash` objects representing users @example
Totter.sticker('staff')
# File lib/totter/client/stickers.rb, line 11 def sticker(sticker_name) get("stickers/#{sticker_name}").body end