Programmatically Upload File to WordPress Using an API [closed]

WordPress has an XML-RPC interface with it’s own API.

You authenticate by using a standard username and password.

You can use wp.uploadFile to actually send it. See also this StackOverflow question.

There is a new API under development.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)