Spore API
Home | Gallery | Documentation | Forum
Flash Samples
Here are some basic samples demonstrating the Spore API. These are written in Flash using ActionsScript 3.0. Click the "download source code" link to get the .fla projects for each sample.
Stats
This is a very simple sample that shows how to get some stats about Spore.com
http://www.spore.com/rest/stats
Sporecasts
This sample displays assets from a sporecast.
http://www.spore.com/rest/assets/sporecast/<SporeCast Id>/<StartIndex>/<Length>
http://www.spore.com/rest/assets/sporecast/500190457259/2/3
Asset Info
This sample gets all the information about an asset and shows how you can get the small PNG for an asset, if you know it's id.
http://www.spore.com/rest/asset/<AssetId>
http://www.spore.com/rest/asset/500005649853
Buddies
This sample gets buddies for a user. Click on a buddy to get their buddies.
http://www.spore.com/rest/users/buddies/<Username>/<StartIndex>/<Length>
http://www.spore.com/rest/users/buddies/MaxisDangerousYams/0/10
Special Searches
This sample searches assets belonging special feeds like "Featured" and "Most Popular"
http://www.spore.com/rest/assets/search/<ViewType>/<StartIndex>/<Length>
http://www.spore.com/rest/assets/search/TOP_RATED/0/2
Assets For User (RSS)
This sample gets all the assets for a user.Use the arrows to scroll through the assets.
It also shows how to get the XML and PNGS for an asset.
http://www.spore.com/atom/assets/user/<Username>
http://www.spore.com/atom/assets/user/MaxisDangerousYams
Achievements
This sample gets achievements for a user. It then looks up the achievement icon, name and text.
http://www.spore.com/rest/assets/achievements/<Username>/<StartIndex>/<Length>
http://www.spore.com/rest/achievements/MaxisLucky/0/5
Achievement Icon: Get the official Spore achievement icon for a given achievement id
http://www.spore.com/static/war/images/achievements/<AchievementId>.png
http://www.spore.com/static/war/images/achievements/0x0cc8b2c9!0x0625c63e.png
Achievement Text: Look up the official Spore achievement name and text in an XML map file
http://www.spore.com/data/achievements.xml