[bd] API

[bd] API 1.6.3

No permission to download

xfrocks

Well-known member
xfrocks submitted a new resource:

[bd] API - Power up your XenForo installation.

[bd] API
Power up your XenForo installation.

[FEATURES]
1. Authentication with OAuth2
2. RESTful API fully documented https://github.com/xfrocks/bdApi/blob/master/docs/api.markdown
3. Flexible, easy to extend for your need
4. Open source: https://github.com/xfrocks/bdApi

Demo: http://xfrocks.com/api/


[INSTALLATION]
1. Upload files and directories inside `upload` to XenForo's root directory. Select "Merge" for everything if you are asked
2. Import the...

Read more about this resource...
 
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.

Thanks

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.
 
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.
ok yea that explains it. and it returns in JSON ?
 
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.
 
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.


Not possible for now.
 
Example of how to authenticate a user using this? Possibly a url that has the username and password put into it?

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.
 
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.
 
Back
Top Bottom