XF 2.1 REST API

Welcome to another HYS for 2.1 and this one's a biggie. If you haven't seen the previous entries about what's coming in XF 2.1, check them out here.

Although Halloween may be over, why not trick the "Watch forum" link into giving you a treat, by getting it send you an email whenever we post about new things in the pipeline.

As I write this, our most popular suggestion was a REST API and with 2.1, it's here. While this is a fairly developer-focused feature on its own, it opens up many more integration options. This will make it easier to get data into or out of XenForo, without having to understand the underlying PHP framework that XF is built on.

The API breaks down into a few distinct components, so let's look at those in turn.
 

Lukas W.

Well-known member
Hi there,

I want to add avatars to users with the api.

What the api expect in the as avatar. If I set avatar to the file with full path it doesn't work.
Code:
$post = array('avatar'=>'/dir/foo/bar/avatar.jpg');
The api response is success.

If I set avatar to anythingelse it will response with success as well.
You're supposed to send a file, not a file path.
 

Brogan

XenForo moderator
Staff member
Once again, support related posts must be made in the relevant forum, not HYS threads or public forums.
 
Top