api

  1. MR X

    XF 2.2 cant upload attachment with api | python

    I cant seem to upload attachment in python i have got the attachment key but I'm unsure how to upload the attachments I've tried everything if someone can provide a python sample for how to do it it would be appreciated.
  2. A

    XF 2.2 API Not Returning All Users

    Hello All, I'm using the users API http://forum.myurl.com/index.php/api/users and its only returning the first 20 users. Is there a way to return all users? Thanks!
  3. T

    XF 2.2 Using XenForo as authentication for other subdomains

    Hello all! I'm working on a site that has multiple components - a Xenforo server (e.g. forums.xyz.com), a Laravel API server (api.xyz.com) and a WordPress site (xyz.com). These are all running on the same physical server, but some are using their own web servers. I don't have much experience...
  4. revolveextra34

    PHP checking XenForo user's account data

    I am authenticating XenForo user via php. My code: public function Auth($username, $password) { $userIDA = $this->getarray("SELECT * FROM xf_user WHERE username='".$username."'"); if($userIDA) { define('SESSION_BYPASS', false); // if true: logged in user info and sessions...
  5. R

    XF 2.2 API and Poll results

    I have just started messing with the API and was wondering if there is a way to grab poll results from a thread via the API?
  6. Kruzya

    Fixed "use_tfa" incorrect naming and typing in API

    If we open API documentation for User entity, we can see field named as use_tfa with type array: But in API response for /me action, this field is presented as usa_tfa and in boolean type:
  7. I

    Not a bug API XenForo attachment

    First, i'm sorry because report bug. This is not bug, I can't post on XenForo development discussions.
  8. A

    XF 2.2 API token on API auth

    Hi, We are trying to build an API on xenforo. We need a token for each user - which respects the users permissions. I understand that this token is the one created in admin->Setup->ApiKeys->user->[userName] I suspect that if we use this token in XF-Api-Key - we can make API calls with user...
  9. D

    Not a bug Connected Plugin to Staging Site, API will Not Connect User Permissions

    I saw a user with the same issue on a different thread, but the solution didn't work for us. I've tried turning all of our plugins off and just getting the API to connect. I'm not receiving any error messages either, just not getting the API User permissions hooked up. I am using the Super User...
  10. Reflect

    XF 2.2 Selecting users based on criteria using the API

    I'm looking at the API documentation to work out how to select all users based on various criteria, such as primary or a secondary usergroup. The documentation suggests only one route to get users: https://xenforo.com/community/pages/api-endpoints/#route_get_users_ I only want to select a...
  11. Will Franco

    HTTP Post to Create New Forum User

    My CRM can send an HTTP post. I want to send an HTTP Post after someone purchases that creates a new user in my forum. Where do I find the post URL and the necessary key-value pairs needed? Better, where can I find someone to do this for me? Thanks in advance, Will P.S. Is there a 3rd party...
  12. nidhin

    XF 2.2 Reply api

    is there any api or specific addon to reply a specific post using api call.
  13. nidhin

    How to implement member map api on front end

    How do we fetch members location details after integrated members map add-on. did they provide API end points after purchase or is there any others methods.
  14. C

    XF 2.2 get styleid via API

    Hi, we are using three systems to host our website. Our Mainsystem is Xenforo. Actual we are implementing an darkmode style, so our users can switch between the normal style and a darkmode style. If a switch happens we like to automatically switch the other systems also to darkmode, so we need...
  15. MJ0730

    XF 2.2 Headers not making it to the server

    In postman I can make a request to the xf api without issue, but when doing it with the fetch api on localhost, I get an error about the api key not being present. It's in the headers, and I can see it in the dev tools. Access-Control-Allow-Origin is set in .htaccess, not sure if there's...
  16. O

    XF 2.2 API endpoints not accessible after fresh install on debian buster

    Howdy, I am trying to setup a local system to test/play with the API endpoints: fresh clean install on debian buster, mariadb. The forums are are working fine. Accessible via http://webdev.mydomain.com/community/ However, http://webdev.mydomain.com/community/api/[any endpoint] gives just...
  17. rik

    As designed REST API: Smilies not replaced in parsed HTML

    Xenforo 2.2 includes parsed post contents in REST API responses (field message_parsed in the Post data type), see REST API Documentation. While images, quotes, etc. are transformed to HTML, smilies aren't. Is that a bug or a feature?
  18. Bobsilvio

    XF 2.2 Call to protected method XF\App::initialize()

    I would like to upgrade to xenforo 2.x The problem is that with 1.x I used XenApi, and created many projects and software based on XenApi. these bees are no longer up to date and perhaps they are abandoned. I absolutely cannot use other APIs for now, I would lose compatibility with older...
  19. M

    XF 2.1 issues with API and Curl PHP

    Hello, I'm have troubles creating a thread with Xenforo API via CURL in PHP. Here's my code : $sUrl = 'https://mydomain.com/api/threads/'; $aData = [ 'node_id' => 13, 'title' => 'test title', 'message' => 'test message']...
  20. developr

    API: no permissions after creating a node

    Hi there, when I create a node via the endpoint /nodes/ the node is not visible in the frontend and I have no permission to update or delete these node. You are only able to update or delete via API after a forums rebuild. Subforums are only visible after editing some forum manually.
Top