Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once "hf_api.php";
- // Initialize api instance
- $api = new HF_API();
- // Set the access token for the specific authorized member
- $api->setAccessToken("ACCESS_TOKEN_HERE");
- // Let's make a post
- $write = $api->write([
- "posts" => [ // Posts Write Permissions
- '_tid' => "THREAD_ID",
- '_message' => "POST_MESSAGE",
- ]
- ]);
- // Let's make a thread
- $write = $api->write([
- "threads" => [ // Posts Write Permissions
- '_fid' => "FORUM_ID",
- '_subject' => "THREAD_SUBJECT",
- '_message' => "FIRST_POST_MESSAGE",
- ]
- ]);
Add Comment
Please, Sign In to add comment