Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby Library for using Myspace's API, works as a Rails plugin
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README.md
Rakefile
init.rb
install.rb
uninstall.rb

README.md

Spacious

Spacious is a simple ruby client for the myspace api. It is designed to be used from Rails as a plugin, however rails is not required.

Example

Get User

begin
    myspace_user = Spacious::User.get(params[:opensocial_viewer_id].to_i)
rescue Spacious::AuthenticationFailed => e
    # Hasn't really added the app yet
    ...
rescue Spacious::InvalidResponse => e
    ...
end

Get Friends of a User

begin
    friend_data = Spacious::Friends.get(myspace_user_id, {:page => params[:page], :page_size => 20})

    @friends = friend_data.friends

    @total_friends = friend_data.count
rescue Spacious::InvalidResponse
    ...
end

Copyright (c) 2009 Benjamin Govero and Ryan Stout, released under the MIT license

Something went wrong with that request. Please try again.