FamryAmri / GD-API

Here the GD-API with PHP :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GD-API


1. GDConfig
2. GDProfile
3. GDSong
4. GDLevel
5. GDComment
6. GDMessage
7. GDError (For Exception)

Example code

<?php
include "/gd-api/autoload.php";
$app = new GDLevel ("http://boomlings.com/database", 60078339);
echo $app->getPassword();
?>

codes functions

GDConfig

  1. new GDConfig($host, $username = null, $password = null);
  2. getUserID ();
  3. getGJP();
  4. getAccountID();
  5. getAccInfo ($type, $icon = "icon");
  6. downloadSaveData (__DIR__."/1");
  7. uploadSaveData (__DIR__."/1");

GDLevel

  1. new GDLevel ("host", ID-LEVEL);
  2. downloadLevel (__DIR__."/1");
  3. getLevelName ();
  4. getDescription ();
  5. getObject ();
  6. getPassword ();
  7. getUserID ();
  8. getPopularity (); In array
  9. getInfo (); In array
  10. getFullString ();

GDProfile

  1. new GDProfile ("host", "accountID", false);
  2. getIcon ("ship");
  3. getUsername ();
  4. getStars ();
  5. getDiamonds ();
  6. getDemon ();
  7. getCP ();
  8. getGoldCoins ();
  9. getCoins ();
  10. getUserID ();
  11. getYouTube ();
  12. getTwitter ();
  13. getTwitch ();

GDSong

  1. new GDSong ("host", SONG-ID);
  2. getDownloadLink ();
  3. getTitle ();
  4. getCreator ();
  5. getSize ();
  6. downloadSong ();

GDComment

  1. new GDComment ("host", "username", "password");
  2. postAccComment ("Hi");
  3. postComment ("Hi", LEVEL-ID);
  4. fetchComment (LEVEL-ID, mode, page);
  5. fetchAccComment ();
  6. setAccountID (AccID); to set AccID
  7. setPage (PageNum);
  8. setUserID (UserID); to set UserID
  9. fetchCommentHistory (1);
  10. getPage ();

GDMessage

  1. new GDMessage ("host", "username", "password");
  2. getMessage (pagenum);
  3. readMessage (messageID);
  4. deleteMessage (messageID);
  5. sendMessage ("Subject", "Body", toAccID);

For Example code goto Here
Composer isnt available now...

About

Here the GD-API with PHP :)

License:MIT License


Languages

Language:PHP 100.0%