SDKTools

From MechaSource Wiki

Jump to: navigation, search

Sdktools are a set of community, app and user tools. These tools allow you to retrieve and post information such as achievements, stats and activity.

Contents

[edit] Community.php

Link

Allows you to retrieve user and app information. The input variables vary depending on the request.

Example: community.php?request=user_name&id=1 returns Mecha the Slag.

Some features require a hash, which is an automatic-generated unique key for each application. The hash is only available to developers.

[edit] User

Request Parameters Description
user_games_developed id returns a list of all apps a user has developed
user_games id returns a list of all apps a user has in his games list
user_name id returns the user's name
user_subname id returns the user's subname
user_msn id returns the user's msn
user_aim id returns the user's aim
user_group id returns the user's group id
user_bio id returns the user's profile page bio
user_bio_header id returns the user's profile page bio header

[edit] Apps

Request Parameters Description
app_name id returns a the app's name
app_authors id returns a list of all authors for the app
app_plot id returns the app's plot
app_detail id returns the app's details
app_date_release id returns the app's release date (Unix Time)
app_date_update id returns the app's update date (Unix Time). If never updated this will be zero
app_has_achievements id returns a boolean for if the app has achievements

[edit] Achievements

Request Parameters Description
ach_status id (account), id2 (app) returns a clients' achievement data for an app (achievementid1,triggers1,completed1;achievementid2,triggers2,completed2; ...)

[edit] Post

Request Parameters Description
post_app_activity hash, id (account), id2 (app), input posts an app activity (BBCode is on). In general this should be used sparingly or not at all. Requires the user to have the app in his games list.