Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prgfx/maniaspace
https://github.com/prgfx/maniaspace
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/prgfx/maniaspace
- Owner: PRGfx
- Created: 2013-03-15T08:52:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-15T09:13:58.000Z (over 11 years ago)
- Last Synced: 2023-02-26T08:32:21.149Z (over 1 year ago)
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ManiaSpace
==========
This class will give you the ability to return basic information from the TrackMania Forever manialink [ManiaSpace](tmtp:///:maniaspace "tmtp:///:ManiaSpace").
You should consider caching the data locally instead of requesting it everytime a user reloads the site. This would decrease the number of cUrl requests.Requirements
------------
- cUrl has to be enabledMethods
-------
- **`getTrackIDs([$account])`**
returns an Array containing the track ids of all uploaded tracks by the given TMF account. Is no account given, it will return the 15 latest track ids.
- **`getTracks([$account])`**
returns an Array containing id, name, image url, ManiaSpace link and download link for each map uploaded by the given account. Is no account given, it will return the data of the 15 latest tracks.
- **`getTrackDetails($id)`**
returns an Array containing name, author, imageurl, download link, ManiaSpace link, download count, environment, mood, type, laps, mod, comment, times, first 7 replays