How To Use API With Headers?

You are setting headers in wrong way.

Try like this,

6 Likes