SHARE
TWEET

HF API v2 Field List

xerotic Jun 1st, 2020 1,850 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' => [25],
  45.         'fid' => true,
  46.         'name' => true,
  47.         'description' => true,
  48.         'type' => true
  49.     ],
  50.     "threads" => [ // Posts Permissions
  51.         '_tid' => [6083719],
  52.         'tid' => true,
  53.         'uid' => true,
  54.         'fid' => true,
  55.         'subject' => true,
  56.         'closed' => true,
  57.         'numreplies' => true,
  58.         'views' => true,
  59.         'dateline' => true,
  60.         'firstpost' => true,
  61.         'lastpost' => true,
  62.         'lastposter' => true,
  63.         'lastposteruid' => true,
  64.         'prefix' => true,
  65.         'icon' => true,
  66.         'poll' => true,
  67.         'username' => true,
  68.         'sticky' => true,
  69.         'bestpid' => true,
  70.         'firstpost' => [
  71.             // '<Post>',
  72.         ]
  73.     ],
  74.     "posts" => [ // Posts Permissions
  75.         '_pid' => [59852261],
  76.         'pid' => true,
  77.         'tid' => true,
  78.         'uid' => true,
  79.         'fid' => true,
  80.         'dateline' => true,
  81.         'message' => true,
  82.         'subject' => true,
  83.         'edituid' => true,
  84.         'edittime' => true,
  85.         'editreason' => true,
  86.         'author' => [
  87.             // '<User>',
  88.         ],
  89.     ],
  90.     "users" => [ // Users Permissions
  91.         '_uid' => [42221],
  92.         'uid' => true,
  93.         'username' => true,
  94.         'usergroup' => true,
  95.         'displaygroup' => true,
  96.         'additionalgroups' => true,
  97.         'postnum' => true,
  98.         'awards' => true,
  99.         'myps' => true,
  100.         'threadnum' => true,
  101.         'avatar' => true,
  102.         'avatardimensions' => true,
  103.         'avatartype' => true,
  104.         'usertitle' => true,
  105.         'website' => true,
  106.         'timeonline' => true,
  107.         'reputation' => true,
  108.         'referrals' => true
  109.     ]
  110. ]);
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