Our API allows you to retrieve informations from our website via GET request and supports the following query parameters:
http://www.destinyjunkie.com/api.php?type=user_data&user=USERNAME
http://www.destinyjunkie.com/api.php?type=posts_data&user=USERNAME&limit=LIMIT
http://www.destinyjunkie.com/api.php?type=search&keyword=KEYWORD&limit=LIMIT&image=yes&gender=male
<?php header('Content-Type: text/plain; charset=utf-8;'); $json_file = file_get_contents("http://www.destinyjunkie.com/api.php?type=user_data&user=USERNAME"); Jsonoutput { "api_status": "success", "api_version": "1.0", "user_data": { "id": "", "username": "", "first_name": "", "last_name": "", "gender": "", "birthday": "", "about": "", "website": "", "facebook": "", "twitter": "", "vk": "", "google+": "", "profile_picture": "", "cover_picture": "", "verified": "", "url": "" } } $json_data = json_decode($json_file); print_r($json_data); ?> PHP arrayoutput Array ( [api_status] => success [api_version] => 1.0 [user_data] => Array ( [id] => [username] => [first_name] => [last_name] => [gender] => [birthday] => [about] => [website] => [facebook] => [twitter] => [vk] => [google+] => [profile_picture] => [cover_picture] => [verified] => [url] => ) )
<?php header('Content-Type: text/plain; charset=utf-8;'); $json_file = file_get_contents("http://www.destinyjunkie.com/api.php?type=user_data&user=USERNAME");
Jsonoutput { "api_status": "success", "api_version": "1.0", "user_data": { "id": "", "username": "", "first_name": "", "last_name": "", "gender": "", "birthday": "", "about": "", "website": "", "facebook": "", "twitter": "", "vk": "", "google+": "", "profile_picture": "", "cover_picture": "", "verified": "", "url": "" } }
$json_data = json_decode($json_file); print_r($json_data); ?>
PHP arrayoutput Array ( [api_status] => success [api_version] => 1.0 [user_data] => Array ( [id] => [username] => [first_name] => [last_name] => [gender] => [birthday] => [about] => [website] => [facebook] => [twitter] => [vk] => [google+] => [profile_picture] => [cover_picture] => [verified] => [url] => ) )
var url = 'http://www.destinyjunkie.com/api.php?type=user_data&user=USERNAME'; $.getJSON(url, function (json) { .... });
Sign up