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

[bd] API 1.5.1

Power up your XenForo installation.

  1. xfrocks

    xfrocks Well-Known Member

    xfrocks submitted a new resource:

    [bd] API - Power up your XenForo installation.

    Read more about this resource...
  2. Andy.N

    Andy.N Well-Known Member

    Can't wait to see how we can take advantage of this. I'm dreaming of doing cool stuff with it.
  3. xfrocks

    xfrocks Well-Known Member

    Something cool is coming :D
  4. tafreehm

    tafreehm Well-Known Member

    wow TWO APIs posted in 24 hours period.

    Can you write up some example so I can get the idea how to structure the url, please.

    Also, if you can guide me how can I make calls from XF page and show data in the page..

    I can see myself doing thousands of things without needing more plugins.

  5. xfrocks

    xfrocks Well-Known Member

    You can explore the API here http://xfrocks.com/api/, it's easily discoverable with related links included for each resource (a forum is a resource, a thread is a resource, etc.)

    For example, going to http://xfrocks.com/api/ you will see that the system supports several resources like categories, forums, threads.

    If you are interested in forums, let's go to http://xfrocks.com/api/forums/ and you get list of all forums.

    If you are interested in one particular forum, for example the "Chatting" one, forum_id=13, you can go to http://xfrocks.com/api/threads/?forum_id=13 to see threads of that forum (the links section contains some other links like permalink to the resource, link to get sub-forums of a forum, etc.)

    If you go to http://xfrocks.com/api/threads/?forum_id=13, you can see the list of threads in "Chatting" forum. Currently there is only one thread but the system supports pages if there are many threads. To get posts of a thread, follow the `posts` link like http://xfrocks.com/api/posts/?thread_id=16 and you will get the posts.

    For detail documentation, check this out: https://github.com/xfrocks/bdApi/blob/master/docs/api.markdown
    Please note that this add-on aims at developer so you may find it a bit difficult to integrate it directly without any actual coding.
  6. tafreehm

    tafreehm Well-Known Member

    ok yea that explains it. and it returns in JSON ?
  7. xfrocks

    xfrocks Well-Known Member

  8. DRE

    DRE Well-Known Member

    Anyone else clueless? :confused:
    beanfan78, D.O.A., CallieJo and 2 others like this.
  9. Arkshine

    Arkshine Active Member

    Yes :ROFLMAO: ; It sounds useful, but I fail to find usage of it. :p
  10. xfrocks

    xfrocks Well-Known Member

    Until something big appears :D
  11. Digital Doctor

    Digital Doctor Well-Known Member

    For the record I just want to say I voted for xfrocks when people asked who Xenforo should hire.
    "Told ya"
  12. xfrocks

    xfrocks Well-Known Member

    Thank you :D
  13. RoldanLT

    RoldanLT Well-Known Member

    Another great contribution for xf community xfrocks (y)
  14. tafreehm

    tafreehm Well-Known Member

    thats good. One last thing:
    Can I use this to grab 10 members with most post ?
    for example: api.php?action=getusers&orderby=postcount&direction=DESC

    I am just being impatient, I did not get time today to try this out, but I will definitely be tomorrow.
  15. Mike Edge

    Mike Edge Formerly Da Bookie Mon

    This is great! Been playing with it all day today for some new ideas ;)
  16. xfrocks

    xfrocks Well-Known Member

    Not possible for now.
  17. faeronsayn

    faeronsayn Well-Known Member

    Example of how to authenticate a user using this? Possibly a url that has the username and password put into it?
  18. xfrocks

    xfrocks Well-Known Member

    This API allows authentication via OAuth (similar to Facebook). Ideally, user don't have to give out password for client sites, user only need to enter password in server site. The API has support for password but it's not working in the released version. Maybe later.
    CallieJo likes this.
  19. Coop1979

    Coop1979 Well-Known Member

    This would be amazing for a custom mobile app.
  20. craigiri

    craigiri Well-Known Member

    As mentioned in the other thread, I had problems with installing this on my dedicated server 1.1.3 Xenforo.

    Server hung when trying to install - instead of rebuilding templates, etc.
    Then it showed as being installed, but no way to get to anything.
    Also hung (no template rebuilds) on de-installation.

    I tried it three times. All XF files check out healthy. No errors in XF log.

Share This Page