1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Full native RESTful API built into XenForo

Discussion in 'XenForo Suggestions' started by RickM, Apr 17, 2013.

  1. RickM

    RickM Well-Known Member

    Pretty self explanatory and would do wonders for development work. I know there is an addon in the resources area however:

    A) It's not been updated in ages
    B) It's a no brainer that this should be built into the core.

    An API would allow:

    - Very easy integration into 3rd party software
    - Infinite customisability if the API was to allow addons to 'hook' into it to add extra API classes
    - Modding would be stupidly simple to do

    A few usage examples:

    - Mobile apps. Creating a complete native Mobile application would be possible without having to resort to calling to webview and displaying a 'dumbed down' web version of the system.

    - Remote user authentication by calling direct to the authentication system without having to reload or redirect people

    - Remote reply posting (ideal for blogs, you could use XenForo as your comment system)

    - Automatic thread creation (again, a good one for blogs)

    - Integrate into CMS systems

    - Pull any sort of info out of XenForo
    DL6, Dadparvar, lNano and 150 others like this.
  2. DeltaHF

    DeltaHF Well-Known Member

    I agree. I want to use XF as a "core" platform and user base which I can build other software and features on my site around.
    CabCon, StarArmy, JeroenR and 4 others like this.
  3. zooki

    zooki Active Member

    What about these two? One seems new and the other is updated recently:




    Definitely need things to be easier to integrate with other platforms or to create my own.

    I need a stronger Mobile presence. ( I know there has been debate over App VS responsive design, but well built apps win hands down. A lot of my users mostly use browsers in their smartphones for googling and temporary browsing)

    These APIs can hopefully bring the Xenforo community much needed integration with Drupal and WordPress. -- This can quell the constant demands for CMS. In fact the latter, especially Drupal are frameworks from which anything is possible! - It is better to integrate with established CMS which have 1000+ amazing plugins and support, than to do a VB or IPB style halfbaked mashup.
    DaiAku and DeltaHF like this.
  4. Contex

    Contex Well-Known Member

    As the developer of XenAPI I strongly support a built-in RESTful API in XenForo as it would allow endless customization.
    Even if my REST API is currently fully functional, it still lacks a bunch of functions and adding additional functions is time consuming as I am the only developer.
    I hope to see this being built-in into XenForo sometime in the future.
    JoeSchmoe, Walter, DaiAku and 5 others like this.
  5. 0ptima

    0ptima Well-Known Member

    This would be an amazing feature to have. One of the reason I own an IPB license is because thy have a native IPB API.
    JoeSchmoe and DaiAku like this.
  6. Markos

    Markos Well-Known Member

    Great suggestion. :)
    DaiAku likes this.
  7. Lu Jia

    Lu Jia Active Member

    I like it too, +1
    DaiAku likes this.
  8. DaiAku

    DaiAku Active Member

    We would really like to see this too! +100
  9. Chris D

    Chris D XenForo Developer Staff Member

    DaiAku likes this.
  10. DaiAku

    DaiAku Active Member

  11. Zantetsuken

    Zantetsuken Member

    I'm definitely in favor of this! :)
  12. RickM

    RickM Well-Known Member

    I thought this was dead but in the last week I've had a crapload of notifications of people liking the first post :p

    It's a shame nothing at all has been said on this. It's something that would add so much flexibility to XenForo, and allow for some awesome mods.
  13. DaiAku

    DaiAku Active Member

    I could not agree more. I would love to see this in Xenforo and it would really help us with an upcoming project.
  14. ogirginc

    ogirginc Active Member

    Hope this will happen in 2.0!
  15. x3sphere

    x3sphere Active Member

    I'd like to see this in 2.0 as well :)
    ogirginc likes this.
  16. AshConnor

    AshConnor Member

    I concur.

    PHP isn't my go-to language and I'd like to use Ruby.

    I'd be willing to build a Rubygem to wrap any API.
  17. feldon30

    feldon30 Well-Known Member

    There is still no outside script that can say "Log this user into XenForo". All the APIs I've seen require you to pass the login/email and password. Well, what if I don't have/store their password? Or what if I don't want to store the user's password in XenForo's database? What if I don't want to send that information across a domain? I should be able to have an outside script just TELL XenForo "user with e-mail address X should now be considered logged in!"

    If you want to read just how painful it currently is to integrate XenForo with a third-party script that will be handling all the authentication, read here:
    Last edited: Sep 10, 2014
  18. Kintaro

    Kintaro Well-Known Member

    +1 RickM!

    I also think that with APIs other suggestions like PUSH Notifications or SmartPhone's App and could be developed/integrated more easily from KAM or 3rd party devs. What do you think?
  19. Brentnauer

    Brentnauer Well-Known Member

    An API would be awesome
  20. xfrocks

    xfrocks Well-Known Member

    Well, this add-on uses [bd] API and OAuth2 to authenticate user, no need for username/password: [bd] API Consumer.

Share This Page