SHARE
TWEET

HF API v2 Field List

xerotic Jun 1st, 2020 1,049 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. require_once "hf_api.php";
  4.  
  5. // Initialize api instance
  6. $api = new HF_API();
  7.  
  8. // Set the access token for the specific authorized member
  9. $api->setAccessToken("ACCESS_TOKEN_HERE");
  10.  
  11. // What data do we want to retrieve from the API? Send an array and process the call.
  12. $read = $api->read([
  13.     "me" => [ // Basic Info & Advanced Info Permissions
  14.         'uid' => true,
  15.         'username' => true,
  16.         'usergroup' => true,
  17.         'displaygroup' => true,
  18.         'additionalgroups' => true,
  19.         'postnum' => true,
  20.         'awards' => true,
  21.         'myps' => true,
  22.         'threadnum' => true,
  23.         'avatar' => true,
  24.         'avatardimensions' => true,
  25.         'avatartype' => true,
  26.         'lastvisit' => true,
  27.         'usertitle' => true,
  28.         'website' => true,
  29.         'timeonline' => true,
  30.         'reputation' => true,
  31.         'referrals' => true,
  32.         'lastactive' => true,
  33.         'unreadpms' => true,
  34.         'invisible' => true,
  35.         'totalpms' => true,
  36.         'warningpoints' => true,
  37.         'lastactive' => true, // Advanced Info Permission Only
  38.         'unreadpms' => true, // Advanced Info Permission Only
  39.         'invisible' => true, // Advanced Info Permission Only
  40.         'totalpms' => true, // Advanced Info Permission Only
  41.         'warningpoints' => true // Advanced Info Permission Only
  42.     ],
  43.     "forums" => [ // Posts Permissions
  44.         'fid' => true,
  45.         'name' => true,
  46.         'description' => true,
  47.         'type' => true
  48.     ],
  49.     "threads" => [ // Posts Permissions
  50.         'tid' => true,
  51.         'uid' => true,
  52.         'fid' => true,
  53.         'subject' => true,
  54.         'closed' => true,
  55.         'numreplies' => true,
  56.         'views' => true,
  57.         'dateline' => true,
  58.         'firstpost' => true,
  59.         'lastpost' => true,
  60.         'lastposter' => true,
  61.         'lastposteruid' => true,
  62.         'prefix' => true,
  63.         'icon' => true,
  64.         'poll' => true,
  65.         'username' => true,
  66.         'sticky' => true,
  67.         'bestpid' => true,
  68.         'firstpost' => [
  69.             // '<Post>',
  70.         ]
  71.     ],
  72.     "posts" => [ // Posts Permissions
  73.         'pid' => true,
  74.         'tid' => true,
  75.         'uid' => true,
  76.         'fid' => true,
  77.         'dateline' => true,
  78.         'message' => true,
  79.         'subject' => true,
  80.         'edituid' => true,
  81.         'edittime' => true,
  82.         'editreason' => true,
  83.         'author' => [
  84.             // '<User>',
  85.         ],
  86.     ],
  87.     "users" => [ // Users Permissions
  88.         'uid' => true,
  89.         'username' => true,
  90.         'usergroup' => true,
  91.         'displaygroup' => true,
  92.         'additionalgroups' => true,
  93.         'postnum' => true,
  94.         'awards' => true,
  95.         'myps' => true,
  96.         'threadnum' => true,
  97.         'avatar' => true,
  98.         'avatardimensions' => true,
  99.         'avatartype' => true,
  100.         'usertitle' => true,
  101.         'website' => true,
  102.         'timeonline' => true,
  103.         'reputation' => true,
  104.         'referrals' => true
  105.     ]
  106. ]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top