How to pass a file to an API call through WordPress

How to pass a file to an API call through WordPress

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