Module: Plurky::API::Timeline

Included in:
Plurky::API
Defined in:
lib/plurky/api/timeline.rb

Instance Method Summary collapse

Instance Method Details

#status(id, options = {}) ⇒ Hashie::Mash

Returns a status

Examples:

Return the status with the ID 1001647781

Plurky.status(1001647781)

Parameters:

  • id (Integer)

    A status ID.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hashie::Mash)

    The requested status.

See Also:



12
13
14
# File 'lib/plurky/api/timeline.rb', line 12

def status(id, options = {})
  get("/APP/Timeline/getPlurk", options.merge(:plurk_id => id))
end

#update(content, qualifier, options = {}) ⇒ Hashie::Mash

Updates the authenticating user’s status

Examples:

Update the authenticating user’s status

Plurky.update("I'm plurking with Plurky!", "says")

Parameters:

  • content (String)

    The content of the status update, up to 140 characters.

  • qualifier (String)

    The qualifier of the status update.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Returns:

  • (Hashie::Mash)

    The created status.

See Also:



25
26
27
# File 'lib/plurky/api/timeline.rb', line 25

def update(content, qualifier, options = {})
  post("/APP/Timeline/plurkAdd", options.merge(:content => content, :qualifier => qualifier))
end